O'Reilly logo

Writing Word Macros, Second Edition by Steven Roman PhD

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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) ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required