Dialogs Object
Collapse the table of content
Expand the table of content

Dialogs Object (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

A collection of Dialog objects in Word. Each Dialog object represents a built-in Word dialog box.

Use the Dialogs property to return the Dialogs collection. The following example displays the number of available built-in dialog boxes.

MsgBox Dialogs.Count

You cannot create a new built-in dialog box or add one to the Dialogs collection. Use Dialogs(Index), where Index is the WdWordDialog constant that identifies the dialog box, to return a single Dialog object. The following example displays the built-in Open dialog box.

dlgAnswer = Dialogs(wdDialogFileOpen).Show

For more information, see Displaying built-in Word dialog boxes .

© 2016 Microsoft