CommandEnabled Event

Microsoft Office Web Components Visual Basic

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.