View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Warren McGoldrick Warren McGoldrick is offline
external usenet poster
 
Posts: 2
Default Run a macro when a Worksheet is clicked/activated

Hi,

I'm looking for code that runs a macro when a worksheet called "email" is
clicked everytime. I think it's an event macro, but, I can not seem to find
an example.

The macro I want to run is simple

Sheets("email").Select
Range("A1").Select
Application.CutCopyMode = False
ActiveWindow.ScrollRow = 1
ActiveWindow.ScrollColumn = 1

Thanks in advance.

Wazza McG