opening a template from access

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top