Linked Word Templates Open As File/New

S

sparrowce

My Access form contains a table of hyperlinked Word templates for th
user to choose. These Word templates have automation built in, wit
fillin’ fields and some have merge fields based on access table data.
When the user opens the linked template from the Access form, it open
the template as if opening from the file/open menu in Word instead o
opening as file/new. This causes the automation in the form to no
activate. Have also tried embedded objects instead of link. How do
tell the selected document on the access form to open as if file/new i
Word? Thank you
 
M

Mark Phillipson

Hi,

You may want to consider using Automation from access and just storing the
word template file names in a table.

Air Code:

Dim wrd As Word.Application
Set wrd = CreateObject("Word.Application")
wrd.Visible = True

wrd.Documents.Add Template:= _
"C:\Folder\File.dot"

wrd.ActiveDocument.SaveAs Filename:="some_name.doc"

wrd.Quit

HTH

--

Cheers
Mark

Free Access/Office Add-Ins at:
http://mphillipson.users.btopenworld.com/
 

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