PUBLIC is not allowed in this module

An Option Public statement, or a declaration of a name as Public, appears in the current module. The product in which you are running LotusScript® does not allow Public declarations anywhere within this module.

Move the Option Public statement or the Public declaration to a module where Public declarations are allowed. Alternatively, remove the Option Public statement or remove the keyword Public from the declaration.