Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Alan -
I always do it this way: Sub abtest4() Dim x x = 4 Select Case x Case 2, 4 MsgBox x End Select End Sub - Jon ------- Jon Peltier, Microsoft Excel MVP Tutorials and Custom Solutions Peltier Technical Services, Inc. - http://PeltierTech.com _______ "Alan Beban" wrote in message ... Sub abtest4() x = 4 Select Case x Case Is = 2 Or 4 MsgBox x End Select End Sub I get no message box when I run the above. What am I missing? Thanks, Alan Beban |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Jon Peltier wrote:
Alan - I always do it this way: Sub abtest4() Dim x x = 4 Select Case x Case 2, 4 MsgBox x End Select End Sub Thanks. Alan Beban |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Case without Select Case error problem | Excel Discussion (Misc queries) | |||
how to use select case | Excel Programming | |||
End Select without Select Case, Block If without End If errors | Excel Programming | |||
Select Case | Excel Programming |