Chapter 20
Automating Word
In this chapter, you will:
Use early and late binding to reference a Word object
Use the
Newkeyword to reference the Word applicationUse the
CreateObjectfunction to create a new instance of an objectUse the
GetObjectfunction to reference an existing instance of WordUse constant values
Be introduced to some of Word’s objects
Control form fields in Word
Word, Excel, PowerPoint, Outlook, and Access all use the same VBA language. The only difference is their object models. For example, Excel has a Workbooks object, and Word has Documents. Any one of these applications can access the object model of another application, as long as the second application is installed.
To access Word’s object library, Excel must establish ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access