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 compiled; with late binding, it is created when the program is run.

This chapter is an introduction to accessing Word from Excel; we will not be reviewing Word's entire object model or the object models of other applications. Refer to the VBA Object Browser in the appropriate application to learn about other object models.

0 0

Post a comment