Chapter 18. Automating Word


Word, Excel, PowerPoint, Outlook, and Access all use the same VBA language; the only difference between them is their object models (for example, Excel has a Workbooks object, Word has Documents). Any one of these applications can access another application’s object model as long as the second application is installed.

To access Word’s object library, Excel must establish a link to it. There are two ways of doing this: early binding or late binding. With early binding, the reference to the application object is created when the program is ...

Get Business Solutions VBA and Macros for Microsoft now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.