I don't anyone has posted this question yet, don't shoot me if I'm wrong! :P
I have a monster if else structure of about 300-400 lines. With a case structure I'd be able to cut it down to 100 or less. Trouble is you only find select cases with fixed values and not cell values.
What does the code do?
C17-C22 can be given a value, 1 or 0. If the value is 1 a text is copied into a worksheet, if the value is 0 nothing happens.
Select case ???
Case "C17" = 1
show me text!!
Case "C18" = 1
show me text!!
...
End select
I know I can do it with different select cases
Select case "C17".value
Case 1
show me text!!
End select
...
But I think it should be possible to do it in one BIG Select Case and not multiple Select Cases.
Many thanks!