How to Run Macro in open workbook/s

H

hni

I want to create procedure that running in open workbook or selecting
sheet ?
please show me how ?
 
B

Bob Phillips

Private Sub Worksheet_Activate()
'your code
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

RP
(remove nothere from the email address if mailing direct)
 
Top