Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hallo,
I would need to test whether the active sheet has one of the name from several possibilities. I tried the simple code below, but it is ending with error. Sub worksheet_name_test() Dim wks As Worksheet If Not wks.Name = "Revenue" Or wks.Name = "SF Revenue" Or wks.Name = "Rbn" Then MsgBox "Correct sheet was not chosen!", vbCritical End If End Sub Thank you in advance for any suggestions. Petr Duzbaba |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Merged Cells in Worksheet, Test for | Excel Discussion (Misc queries) | |||
If a worksheet name is = to test then a msgbox appears | Excel Discussion (Misc queries) | |||
Test for Worksheet | Excel Programming | |||
How can I test when any worksheet within a workbook is selected | Excel Programming | |||
Test to see if a worksheet exists thanks, Chip | Excel Programming |