Chapter 20

Understanding the Word Object Model and Key Objects

This chapter shows you how to start coming to grips with the Word object model, the architecture underlying Word, and shows you how to perform common tasks with the most frequently useful Word objects. These objects include the Documents collection and the Document object, the Selection object, Range objects, and the Options object.

In this chapter you will learn to:

  • Understand the Word object model
  • Understand Word’s creatable objects
  • Work with the Documents collection and the Document object
  • Work with the Selection object
  • Create and use ranges
  • Manipulate options

Examining the Word Object Model

You don’t need to understand how the Word object model fits together in order to work ...

Get Mastering VBA for Microsoft Office 2007, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.