Question : Click on sheet and run macro

Is there a way to click on a worksheet  tab at the bottom and run a macro?

Answer : Click on sheet and run macro

Medicine1,

You can use code as below - it's in the attached file.

Patrick
1:
2:
3:
4:
5:
Private Sub Worksheet_Activate()
'use the next line to call your macro
'Call name_of_macro_here
MsgBox "Hello, you clicked my tab!"
End Sub
Random Solutions  
 
programming4us programming4us