Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Mailmerge and Fax / March 2008

Tip: Looking for answers? Try searching our database.

Documents from Templates

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
gordheck - 14 Mar 2008 01:31 GMT
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

--
gordheck
Doug Robbins - Word MVP - 14 Mar 2008 04:12 GMT
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")

Signature

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

> I have an application which creates Word documents from a access table
> using Visual Basic commands.
[quoted text clipped - 6 lines]
>
> How do I create the Word Document without any reference to a template.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.