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

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

Error ID: BC32032

To correct this error

  • Separate the multiple statements onto different lines.

See Also

Tasks

How to: Break and Combine Statements in Code

Reference

Function Statement (Visual Basic)