My template has code in AutoNew()
I need to asign strFileLocation as the file location of the template
How do I do this?
thanks.

Re: using code to determine the file location by Jay

Jay
Fri Jan 11 10:56:39 PST 2008

Southern at Heart wrote:
> My template has code in AutoNew()
> I need to asign strFileLocation as the file location of the template
> How do I do this?
> thanks.

strFileLocation = ThisDocument.FullName

The key point here is that ThisDocument represents the template containing
the running code, not the active document (which would be ActiveDocument).

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.