Trying to help somebody with a Word Macro, but I suspect the problem (and the answer) would be the same in Excel VBA.

Trying to use ExportAsFixedFormat to send a page of a document to a PDF file. One of the parameters is OutputFileName. If I type in OutputFileName:="c:\Trusted\TYL1234" it works fine, but if I type in OutputFileName:=strFileName, storing the exact same string in that variable, it complains that it's not a valid file name. What's up?