Chapter 11. The Application Object

In this chapter:

  • Properties and Methods

  • The Options Object

  • The Task Object

  • The Template Object

  • The Window Object

  • The Pane Object

  • The View Object

  • The Zoom Object

At last we can begin a detailed look at the major portions of the Word object model, starting with the Application object, which sits atop the object model. Figure 11-1 shows the Application object and its children.

Figure 11-2 shows those children of the Application object that I discuss in this book, in this chapter and later chapters. After discussing some of the properties and methods of the Application object itself, I discuss some of the simpler child objects of Application in this chapter, saving the more involved child objects for later chapters.

Properties and Methods

The Application object has a whopping 139 properties and methods:

Activate

Caption

DefaultTableSeparator

ActiveDocument

CaptionLabels

Dialogs

ActivePrinter

CentimetersToPoints

DisplayAlerts

ActiveWindow

ChangeFileOpenDirectory

DisplayAutoCompleteTips

AddAddress

CheckGrammar

DisplayRecentFiles

AddIns

CheckSpelling

DisplayScreenTips

Application

CleanString

DisplayScrollBars

Assistant

CommandBars

DisplayStatusBar

AutoCaptions

Creator

Documents

AutoCorrect

CustomDictionaries

EnableCancelKey

AutomaticChange

CustomizationContext

FileConverters

BackgroundPrintingStatus

DDEExecute

FileSearch

BackgroundSavingStatus

DDEInitiate

FindKey

BrowseExtraFileTypes

DDEPoke

FocusInMailHeader ...

Get Writing Word Macros, Second 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.