Illegal OPTION PUBLIC after declaration
The Option Public statement was used after an explicit declaration of a variable, constant, procedure, user-defined data type, or class.
Move the Option Public statement so that it precedes all explicit declarations.