The Select Case statement uses the following syntax:
Select Case testexpression
Case expressionlist1
statements
Case expressionlist2
statements
Case Else
statements
End Select
testexpression is a single expression, that is evaluated at the top of the list. The expressionlist then lists possible conditions and if the testexpression is equal to this case, the code in that section is run.
Comments