Assign Macro to tab

  • Thread starter Thread starter superkopite
  • Start date Start date
S

superkopite

Hey guys and gals,

Just a small prob, can't seem to find it in the help files either

Does anyone know how i can assign a macro to a worsheet tab, so that
everytime that worksheet is selected a macro is run

Cheers

James
 
Hi James,

Don't think you can assign to a tab, put your macro in this event macro of
the sheets and that should do it.

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
'ThisSheetMacro
End Sub

HTH
Regards,
Howard

"superkopite" <[email protected]>
wrote in message
news:[email protected]...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top