Command Event

See Also                  Applies To

Occurs as soon as a spreadsheet command finishes running. Use the BeforeCommand event if you want to be able to cancel the default command action.

Syntax

Private Sub Spreadsheet_Command(SpreadsheetEventInfo As SpreadsheetEventInfo)

SpreadsheetEventInfo   The SpreadsheetEventInfo object that contains information about the event.

Remarks

Use the Command property to determine the command that caused the event to occur. The Command property returns one of the SheetCommandEnum constants. Note that the ssHelp command constant is not supported.

Remarks

For information about using events with VBScript, see Declaring and Using Event Procedures in VBScript.