Dialogs.Item method (Word)

Returns a dialog in Microsoft Word.

Syntax

expression.Item (Index)

expression Required. A variable that represents a 'Dialogs' collection.

Parameters

Name Required/Optional Data type Description
Index Required WdWordDialog A constant that specifies the dialog.

Return value

Dialog

Example

This example displays the Page Setup dialog.

Sub DialogItem() 
 Application.Dialogs.Item(wdDialogFileDocumentLayout).Display 
End Sub

See also

Dialogs Collection Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.