First statement of a method body cannot be on the same line as the method declaration
A Function, Sub, Get, Set, or Property statement must be alone on a source code line.
Error ID: BC30040
To correct this error
Remove any line label preceding the procedure declaration.
Move any statement preceding the procedure declaration to a previous source code line.
Move any statement following the procedure declaration to a subsequent source code line.