How do you sendkeys with variables? , ie

sendkeys "%(e+a)MyVariableString{Enter}{Tab}"
The variable is actually a, txtFile.text

I've tried quite a few different ways, and decided 2 hours later, to post this question.