humbletech99
Programmer
I have got a select case statement in which I need two or more options to be mapped to the same action, something like
I really really don't want to have to have a separate Case block for each option as this would double all the code for each option.
I have checked the docs but cannot see a way of doing multiple cases at the same time.
Any guidance on this would be much appreciated.
Code:
Select Case strOption
Case "abc" or "hjk"
do something
Case "xyz" or "sdf"
do something else
Case Else
do last resort.
End Select
I really really don't want to have to have a separate Case block for each option as this would double all the code for each option.
I have checked the docs but cannot see a way of doing multiple cases at the same time.
Any guidance on this would be much appreciated.