WorkbookActivate Event

See Also         Example         Applies To

Occurs when any workbook is activated.

Syntax

Private Sub app_WorkbookActivate(ByVal Wb As Workbook)

app   An object of type Application declared with events in a class module. For more information, see Using Events with the Application Object.

Wb   The activated workbook.