Occurs when an active worksheet in a workbook is about to be changed.
The ActiveSheetChanging event's data class is ActiveSheetChangingEventArgs. The following properties provide information specific to this event:
|Cancel||Gets or sets whether the changing the active sheet should be canceled.|
|NewActiveSheetName||Gets the name of the new active worksheet. Inherited from ActiveSheetChangeEventArgsBase.|
|OldActiveSheetName||Gets the name of the old active worksheet. Inherited from ActiveSheetChangeEventArgsBase.|