E
Eric
I'm trying to do the following from within access:
opening a new document and then selecting a template that is
saved in my default template path. Below you can see the routine.
( I actually this routine on the AccessWeb).
The routine opens a new document but for some reason the template
doesn't get opened. Anyone has any idea???? many thanks.
Const conTEMPLATE_NAME = "\Templates\Q Rentals Template.dot"
Set mobjWordApp = New Word.Application
With mobjWordApp
.Visible = True
.WindowState = wdWindowStateMaximize
.Documents.ADD Template:=(.Options.DefaultFilePath( _
wdUserTemplatesPath) _
& conTEMPLATE_NAME)
End With
opening a new document and then selecting a template that is
saved in my default template path. Below you can see the routine.
( I actually this routine on the AccessWeb).
The routine opens a new document but for some reason the template
doesn't get opened. Anyone has any idea???? many thanks.
Const conTEMPLATE_NAME = "\Templates\Q Rentals Template.dot"
Set mobjWordApp = New Word.Application
With mobjWordApp
.Visible = True
.WindowState = wdWindowStateMaximize
.Documents.ADD Template:=(.Options.DefaultFilePath( _
wdUserTemplatesPath) _
& conTEMPLATE_NAME)
End With