Chapter 19. Built-in Dialog Objects

In this chapter:

  • The Show Method

  • The Display and Execute Methods

  • The DefaultTab Property

  • The Type Property

  • The Update Method

  • Example: Printing Document Statistics

The Word object model contains a Dialog object for each of Word’s almost 200 built-in dialog boxes. These Dialog objects are kept in the Dialogs collection and are indexed by the 171 WdWordDialog constants:

WdDialogConnect (420)

wdDialogFilePrintSetup (97)

WdDialogControlRun (235)

wdDialogFileRoutingSlip (624)

WdDialogConvertObject (392)

wdDialogFileSaveAs (84)

WdDialogCopyFile (300)

wdDialogFileSaveVersion (1007)

WdDialogCreateAutoText (872)

wdDialogFileSummaryInfo (86)

WdDialogDocumentStatistics (78)

wdDialogFileVersions (945)

WdDialogDrawAlign (634)

wdDialogFontSubstitution (581)

WdDialogDrawSnapToGrid (633)

wdDialogFormatAddrFonts (103)

WdDialogEditAutoText (985)

wdDialogFormatBordersAndShading (189)

WdDialogEditCreatePublisher (732)

wdDialogFormatBulletsAndNumbering (824)

wdDialogEditFind (112)

wdDialogFormatCallout (610)

wdDialogEditGoTo (896)

wdDialogFormatChangeCase (322)

wdDialogEditGoToOld (811)

wdDialogFormatColumns (177)

wdDialogEditLinks (124)

wdDialogFormatDefineStyleBorders(185)

wdDialogEditObject (125)

wdDialogFormatDefineStyleFont (181)

wdDialogEditPasteSpecial (111)

wdDialogFormatDefineStyleFrame(184)

wdDialogEditPublishOptions (735)

wdDialogFormatDefineStyleLang (186)

wdDialogEditReplace (117)

wdDialogEditSubscribeOptions (736) ...

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.