> Paste this into the worksheet module
> Private Sub Worksheet_Activate()
[quoted text clipped - 10 lines]
>>
>> Nancy
I try it but nothing happens!
Nancy
Gary Keramidas - 29 Sep 2007 04:51 GMT
put the code on the sheet that is activated when you click the tab,
for example, if you want the code to fire when you click on sheet2
then in the vb editor, double click sheet2 under ms excel objects and paste his
code there.
Private Sub Worksheet_Activate()
MsgBox "start to update this sheet"
End Sub

Signature
Gary
>> Paste this into the worksheet module
>> Private Sub Worksheet_Activate()
[quoted text clipped - 13 lines]
>
> Nancy
Gord Dibben - 29 Sep 2007 04:56 GMT
Jean
Where did you place the code?
Right-click on the sheet tab and "View Code"
Copy/paste the code into that sheet module.
Switch to another sheet then back to first sheet to "Activate" the code.
Gord Dibben MS Excel MVP
>> Paste this into the worksheet module
>> Private Sub Worksheet_Activate()
[quoted text clipped - 14 lines]
>
>Nancy