Each Select Case construct must be terminated with an End Select statement. This error has the following cause and solution:
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.