EnableEvents Property

Microsoft Office Web Components Visual Basic

True if events are enabled for the spreadsheet or the chart workspace. Read/write Boolean.

expression.EnableEvents

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example prevents spreadsheet event procedures from running.

Spreadsheet1.EnableEvents = False