Load VBA on Activated Sheet
Private Sub Worksheet_Activate()
'do something
End Sub
'This is worksheet event code, which means that it needs to be
'placed in the appropriate worksheet code module, not a standard
'code module. To do this, right-click on the sheet tab, select
'the View Code option from the menu, and paste the code in.
--
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
"RigasMinho" wrote in message
oups.com...
Hey,
in Visual basic you can put in code to run when the form is loaded up.
is there a way to do the same for Excel when a worksheet is loaded up?
|