CommandName Property Example

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

MsgBox Dialogs(wdDialogFileSaveAs).CommandName