Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Word Mail Merge
Message
 
To
21/04/2012 14:22:44
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 7
Miscellaneous
Thread ID:
01542272
Message ID:
01542326
Views:
60
>Thanks Borislav! That works great. One little issue is a prompt that comes up "Select Table", showing Sheet1$ with a checkbox "first row of data contains column header" which is checked by default.
>
>How would I control this to simply select "OK"?
>
>Gold stars are on their way to you!
>
>Thanks,
>Martha

Try:
oWord.ActiveDocument.MailMerge.OpenDataSource(m.dir+"data\labels.xls",,.f.,.f.,,,,,,,,,"SELECT * FROM [Sheet1$]")
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform