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 / February 2004

Tip: Looking for answers? Try searching our database.

MailMerge and VB auto

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
hummingbird - 15 Feb 2004 01:21 GMT
Need to remote control Word 2003 from VB6 app. I use the following steps
Public appWord As Word.Applicatio
Public appWordDoc As Word.Documen
 Set appWord = New Word.Applicatio
 appWord.Visible = Tru
 Set appWordDoc = appWord.Documents.Open("c:\Temp.doc")

Then if I try to read
appWordDoc.MailMerge.DataSource.QueryString
it says the object is not available
The document is a merge doc connected to a query in access. If I open it maunally with word, it ask me if I want to open the database with the doc, if I say yes, all is good
When I try the code above, it appears that the doc is opening without the database. The propert
appworddoc.MailMerge.MainDocumentType comes back as not a merge doc.
How do I open the doc thru code and make it open the data with it
hummingbird - 15 Feb 2004 02:01 GMT
Never mind. Found previous article the has this problem
I was able to solve the problem with Knowledge Base Article 825765
 
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.