Dialogs Property

Applies To

Application object, Global object.

Description

Returns a Dialogs collection that represents all the built-in dialog boxes in Word. Read-only.

See Also

Display method, Execute method (Dialog, KeyBinding, and MailMerge objects), Show method, Update method.

Example

This example displays the built-in Find dialog box, with "Hello" in the Find What box.

Set dlg = Dialogs(wdDialogEditFind)
With dlg
    .Find = "Hello"
    .Show
End With
This example displays the built-in Open dialog box showing all file types.

With Dialogs(wdDialogFileOpen)
    .Name = "*.*"
    .Show
End With
This example prints the active document, using the settings from the Print dialog box.

Dialogs(wdDialogFilePrint).Execute