Illegal executable code at the module level

An executable statement appears at the module level. The product in which you are running LotusScript® does not allow executable statements at the module level.

Move the executable statement into a procedure. If you want the statement to be executed when the module is loaded, move the statement into the Initialize sub. If you want the statement to be executed when the module is unloaded, move the statement into the Terminate sub.