Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word 97 OLE for MailMerge
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Word 97 OLE for MailMerge
Miscellaneous
Thread ID:
00091260
Message ID:
00091260
Views:
53
I am activating a mail of a form letter which is called by VFP after a selection routine on a table creates the merge .dbf. I have gotten this far and cannot figure out the syntax for the rest.

oWord=createobject("word.basic")
oWord.appshow
oWord.fileopen("form.doc")

I then want to just tell it to mail merge to a new document and let the user take over from there. The command I tried (in additions to variations thereof) was:

oWord.MailMerge.MailMergeDestination=0 (what I understand tells it to merge to a new document.)

I get a message back saying:

Member MAILMERGE does not evaluate to an object. I have checked the Visual Basic Editor for Word and it provides no clues. Does anyone know the secret "word" that gets me past this?

TIA

Bill
CySolutions, Medical Information Technology
You're only as good as your last
success, so . . .If it works. . .don't fix it!
Reply
Map
View

Click here to load this message in the networking platform