How to Create a Form Letter with a Visual Basic Macro (138283)
The information in this article applies to:
- Microsoft Excel for Windows 95
- Microsoft Word for Windows 95
This article was previously published under Q138283 SUMMARY
When you use OLE Automation to communicate from one program to another, you
can complete many useful tasks without having to leave the client program.
For example, perhaps you store data in Microsoft Excel, but you would like
to create form letters in Microsoft Word using this data. The example
provided in the "More Information" section of this article shows how you
can perform this task programmatically.
Note that you may experience problems running a macro in Microsoft Excel if
you are using a Microsoft Excel data source to perform a mail merge in
Microsoft Word. The resolution to this problem is to save the Microsoft
Excel file as a Word document and to use the Word document as the source of
the data. In the macro example provided below, the macro saves the
Microsoft Excel data file to a Word document.
For additional information about this problem, please see the following
article in the Microsoft Knowledge Base:
138289 XL7: Error Using OLE Automation with Microsoft Word 7.0
REFERENCES
For more information about OLE Automation, click the Index tab in
Microsoft Excel Help, and type the following text:
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kbProgramming KB138283 |
---|
|