Syntax

expression.EnableEvents

expression A variable that represents an Application object.

Example

This example disables events before a file is saved so that the BeforeSave event doesn't occur.

Visual Basic for Applications
Application.EnableEvents = False ActiveWorkbook.Save Application.EnableEvents = True
enable events Enable events for a specified object? Enable Events Property EnableEvents EnableEvents Property Turn on the occurrence of object events?

See also: