Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Try this
If Sht.Name = "Tickers" Or Sht.Name = "AllCos" Then ' Do nothing Else Sht.Delete End If -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "SteveC" wrote in message ... The following is a piece from a macro which works: For Each Sht In Sheets ' delete all sheets with previous results firstly If Sht.Name < "Tickers" Then Sht.Delete I modified it to this, but it doesn't work: If Sht.Name < "Tickers" or "AllCos" Then Sht.Delete how do I modify it so the macro doesn't delete the sheets named Tickers and AllCos Thanks very much. SteveC |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel | |||
Adding "New" "Insert" "Delete" into a workbook to change from data 1 to data 2 etc | Excel Programming |