The Office Object Model

If you are familiar with any of the Office applications, then you already have a head start in understanding the Office object model. This is because object models in general, and the Office object model in particular, are designed so that the various objects correspond as much as possible to the actual things, or elements, that you work with in the application.

Let's take Word for an example, because wordprocessing is probably the task that most readers have some familiarity with. The most obvious “thing” that you work with in Word is a document, or file. Whether it's a long report with lots of fancy formatting or a half-page memo, all documents have a lot of things in common: Each one exists in a separate disk file, ...

Get Office® XP Development with VBA 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.