Udostępnij za pośrednictwem


Dialog.CommandName Property (Word)

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.

MsgBox Dialogs(wdDialogFileSaveAs).CommandName

See Also

Concepts

Dialog Object

Dialog Object Members