Discussion:
|
There may be times where you wish to open a word document and send something to it from Excel, Powerpoint, or any other MS Office program. This is a basic example of how to create an instance of Microsoft Word, and set it to visible. Demonstrations using both Excel and Powerpoint are included in the example files, although it will also work from Access, Publisher, or any other Office app. This code uses "Late Binding" to accomplish the task, which means that you do not have to set a reference to Word to use it. You should be aware, however, that if you include any word constants in your code, however, they will not compile and need to be replaced by their numerical equivalents. Help for this kind (and any other issues) can be found in the VBAExpress forums.
|