Documents from Templates

G

gordheck

I have an application which creates Word documents from a access tabl
using Visual Basic commands.
I open a Word Document Template. Perform calls to move data int
bookmarks and save the document (with a unique name) as a .DOC type

My problem is that when I attach the .DOC to an EMail and the receive
try's to open the .DOC it seems to of carried over the template styl
and is asking to open an SQL command.

How do I create the Word Document without any reference to a template
 
D

Doug Robbins - Word MVP

Was the document at some time a mailmerge main document?

Of course, you should not be opening the template. You should select New
from the File Menu and the select the template as the basis for the document
that you want to create. Or using code, you would use

Documents.Add("TemplatePath\Name")

not

Documents.Open("TemplatePath\Name")

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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