Create a Session of Microsoft Word

This application uses automation with Microsoft Word for formatted printing purposes. To use Word you must first connect or instantiate a running instance of Microsoft Word, as illustrated in the following:

Set mobjWord = CreateObject("Word.Application")

Figure 22-3. Layer Reporter main dialog box

Simply instantiating Microsoft Word does not make it visible, however. You must make it visible manually by setting the object's Visible property to True:

mobjWord.Visible = True

Was this article helpful?

0 0

Post a comment