Share via


Dialog.CommandName Property

Word Developer Reference

Returns the name of the procedure that displays the specified built-in dialog box. Read-only String.

Syntax

expression.CommandName

expression   A variable that represents a Dialog object.

Remarks

For more information about working with built-in Word dialog boxes, see Displaying Built-in Word Dialog Boxes.

Example

This example displays the name of the procedure that displays the Save As dialog box (File menu): FileSaveAs.

Visual Basic for Applications
  MsgBox Dialogs(wdDialogFileSaveAs).CommandName

See Also