Can you not use "if" statements in Case Select statements? If you can, will somebody help me figure out why I'm getting an error (Error '438') for the following code?
Code:Select Case shift1 Case [1] If (wc1 = Cells(i, 1).Value) Then moveData = False End If Case [2] If wc1 = Cells(i - 1, 1).Value Then moveData = False End If Case [3] If wc1 = Cells(i - 2, 1).Value Then moveData = False End If Case Else moveData = True End Select
Hi compulsiveguile,
As far as im aware you can use if in a select (not that i ever have so i could be wrong).
but, what data type is shift1? if Integer then try case 1 instead of case [1].
or if string case "1"
There are only 10 types of people in the world:
Those who understand binary, and those who don't!
It's always so simple... thanks!Originally Posted by Stuie
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks