'End Sub' must be the first statement on a line

An End Sub statement follows a colon (:) statement separator. End Sub must be the only statement on its source line.

Error ID: BC32031

To correct this error

  • Separate the multiple statements onto different lines.

See Also

Tasks

How to: Break and Combine Statements in Code

Reference

Sub Statement (Visual Basic)