Im trying to create a macro which opens a dialog box with a specific path that I specify. The path has templates (.dot) in it which a user will open.
For example:
Sub FileOpen()
ChangeFileOpenDirectory "C:\Templates"
Dialogs(wdDialogFileOpen).Show
End Sub
However, if a user opens a template using the above macro, it 'opens' the template itself and not a new instance of it.
I have also tried:
Sub FileOpen()
ChangeFileOpenDirectory "C:\Templates"
Dialogs(wdDialogFileNew).Show
End Sub
which would open a new instance of the template but I am not able to specify a path on the network using this method. In Word 2003, when you do a File - New, in the right hand task pane you get an option "New from exisiting document". I would like to be able to use this button but then be able to specify a specific path for it to open. Does any one know if this is possible?
Any help will be much appreciated.
For example:
Sub FileOpen()
ChangeFileOpenDirectory "C:\Templates"
Dialogs(wdDialogFileOpen).Show
End Sub
However, if a user opens a template using the above macro, it 'opens' the template itself and not a new instance of it.
I have also tried:
Sub FileOpen()
ChangeFileOpenDirectory "C:\Templates"
Dialogs(wdDialogFileNew).Show
End Sub
which would open a new instance of the template but I am not able to specify a path on the network using this method. In Word 2003, when you do a File - New, in the right hand task pane you get an option "New from exisiting document". I would like to be able to use this button but then be able to specify a specific path for it to open. Does any one know if this is possible?
Any help will be much appreciated.