'Case' can only appear inside a 'Select Case' statement

A Case statement occurs outside a Select block. A Case statement can be used only between a Select or Select Case statement and its corresponding End Select statement.

Error ID: BC30072

To correct this error

  • Remove the Case statement or move it to within a Select block.

See also