1: 2: 3: 4: 5:
Private Sub Worksheet_Activate() 'use the next line to call your macro 'Call name_of_macro_here MsgBox "Hello, you clicked my tab!" End Sub