View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
gfkbob[_2_] gfkbob[_2_] is offline
external usenet poster
 
Posts: 5
Default Running Macro at sheet activation

I would like to have a macor run when certain pages are opened. This
is what I have tried...
Private Sub Worksheet_Activate ()
Application.Run "Macroname"
End Sub

All I get is the screen flashing at me about 50 times and the macro
doesn't run.

My hope is to have a macro run on activation and another run on
deactivation. I'm looking for the correct wording. I could sure use
some help. Thanks!