Activate Event


Back to Index | Table of Contents

 

The example below shows a simple procedure that is executed whenever a particular sheet is activated, and display the name of the active worksheet in a message box. The code is enter in the Worksheet_Activate () module.

Private Sub Worksheet_Activate()

MsgBox ^You are viewing ^ & ActiveSheet.Name

End Sub

 

   
WidgetBucks - Trend Watch - WidgetBucks.com

 

HOME