Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Stu
Perhaps you are not substituting correctly the names of your sheets into Toms code. Suppose you have named your sheets: Apples, Bananas, Cherries, Plums, and Prunes If you want your code to run in all sheets EXCEPT Bananas and Plums then try this: Sub MySub() Select Case activesheet.name ' sheets not to run with Case "Bananas", "Plums" exit sub 'This will keep your code from running on these 2 sheets End Select 'Add your code here that will run on the other sheets '............ End sub ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to name worksheet tabs using a cell within the worksheet? | Excel Discussion (Misc queries) | |||
Macro to Create New Worksheet and Reference Cell in Old Worksheet As Tab Name - "Object Required" Error | Excel Discussion (Misc queries) | |||
How? Macro to copy range to new worksheet, name new worksheet, loop | Excel Programming | |||
macro to apply worksheet event to active worksheet | Excel Programming | |||
Record Worksheet Content as Macro and Execute from another Worksheet | Excel Programming |