P
Paul H
The Word 2003 VB code below is from the new method of a word template(.dot)
file.
The last line should return the document path from the File Locations tab
of the Word Options dialogue box. Instead it incorrectly returns the
workgroups templates path (which is the path of the current word template).
If I change the code to return the startup path or tools path it correctly
returns the startup and tool paths respectively.
Can any one suggest why it does not work for the documents path or how to
access the documents path?
'************* Sample Code *********
Private Sub Document_New()
'Inititialse values on user data entry form
PupilForm.DocumentPathName.Value =
Application.Options.DefaultFilePath(wdDocumentsPath)
'***********End of Sample Code*******
file.
The last line should return the document path from the File Locations tab
of the Word Options dialogue box. Instead it incorrectly returns the
workgroups templates path (which is the path of the current word template).
If I change the code to return the startup path or tools path it correctly
returns the startup and tool paths respectively.
Can any one suggest why it does not work for the documents path or how to
access the documents path?
'************* Sample Code *********
Private Sub Document_New()
'Inititialse values on user data entry form
PupilForm.DocumentPathName.Value =
Application.Options.DefaultFilePath(wdDocumentsPath)
'***********End of Sample Code*******