Select Case without End Select

Each Select Case construct must be terminated with an End Select statement. This error has the following cause and solution:

  • You used a Select Case statement without a corresponding End Select statement. Check if there is an incorrectly matched Select Case...End Select structure inside an outer Select Case...End Select structure. If you have nested Select Case statements, each must have a matching End Select.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.