CommandName Property

Microsoft Word Visual Basic

CommandName Property

       

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

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