Categories
October Surprise 2024

Select Case statement (VBA) | Microsoft Learn

This example uses the Select Case statement to evaluate the value of a variable. The second Case clause contains the value of the variable being evaluated, and therefore only the statement associated with it is executed.