I have a macro that points to a template in the startup location for Word. This has always worked fine, except that we need to now change the startup path for citrix to point to c:documents and settings%username%application datamicrosoftwordstartup. When I attempt to use the username variable, I am getting an error message. How can I fix the following code to work for with the variable username?
If fsGetVariableValue(“letterformat”) = “Personal” Then
Selection.HomeKey unit:=wdStory
Templates(“C:Documents and Settings%username%Application DataMicrosoftWordStartupSWFirm.DOT”).AutoTextEntries(“Writer”).Insert _
Where:=Selection.Range
End If