#1   Report Post  
Posted to microsoft.public.excel.misc
superkopite
 
Posts: n/a
Default Assign Macro to tab


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


--
superkopite
------------------------------------------------------------------------
superkopite's Profile: http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=509486

  #2   Report Post  
Posted to microsoft.public.excel.misc
L. Howard Kittle
 
Posts: n/a
Default Assign Macro to tab

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"
wrote in message
...

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


--
superkopite
------------------------------------------------------------------------
superkopite's Profile:
http://www.excelforum.com/member.php...o&userid=29496
View this thread: http://www.excelforum.com/showthread...hreadid=509486



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to create a command button, then assign macro to it in excel kshaheen Excel Discussion (Misc queries) 3 June 24th 08 01:03 PM
Macro Help In Excel welshlad Excel Discussion (Misc queries) 14 October 26th 05 02:34 PM
Highlight Range - wrong macro, please edit. Danny Excel Worksheet Functions 8 October 19th 05 11:11 PM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM
Playing a macro from another workbook Jim Excel Discussion (Misc queries) 1 February 23rd 05 10:12 PM


All times are GMT +1. The time now is 11:59 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"