How do I open a Word Template from Access database

G

Guest

I can open a Word Document using the Event procedure but not a Word Template.
Any ideas?
 
A

Arvin Meyer [MVP]

Wayne Viles said:
I can open a Word Document using the Event procedure but not a Word Template.
Any ideas?

Like this:

Sub OpenLetterTemplate()

Dim WordTemplate As String
Dim objWord As Word.Application
Set objWord = CreateObject("Word.Application")

WordTemplate = Application.CurrentProject.Path & "\Letter.dot"
objWord.Visible = True

End Sub
--
Arvin Meyer, MCP, MVP
Microsoft Access
Free Access downloads:
http://www.datastrat.com
http://www.mvps.org/access
 

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