Method declaration statements must be the first on a logical line

A Function or Sub statement follows a colon (:) statement separator. Function or Sub must be the only statement on its source line.

Error ID: BC32009

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)

Function Statement (Visual Basic)