B
Bobby V
Hi
I am trying to retrieve the current document location from a document
template via a Macro when a user opens a Word Template ( dot ) file.
This is an example of code I am using:
Sub Document_Open()
MsgBox ActiveDocument.Path & Application.PathSeparator & _
ActiveDocument.Name
End Sub
This output only displays '\Document' if run with in a template file (.dot).
If however it is run with in a Document file (.doc) then it displays the
full path eg
C:\MyDocuments\Document
Any ideas on how I can resolve this ?
I am trying to retrieve the current document location from a document
template via a Macro when a user opens a Word Template ( dot ) file.
This is an example of code I am using:
Sub Document_Open()
MsgBox ActiveDocument.Path & Application.PathSeparator & _
ActiveDocument.Name
End Sub
This output only displays '\Document' if run with in a template file (.dot).
If however it is run with in a Document file (.doc) then it displays the
full path eg
C:\MyDocuments\Document
Any ideas on how I can resolve this ?