CommandEnabled Event

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Occurs when the the specified Microsoft Office Web Component command is enabled.

Private Sub object**_CommandEnabled (ByVal Command As Variant, ByVal Enabled As ByRef)**

object   A ChartSpace, PivotTable, or Spreadsheet object.

Command  Required. The command that has been executed.

*Enabled *Required. Set the Value property of this object to True to disable the command.

Remarks

The OCCommandID, ChartCommandIDEnum, PivotCommandId, and SpreadsheetCommandId constants contain lists of the supported commands for each Web component.