Error number must be INTEGER constant: <name>
You used a name as an error number in an On Error statement, but it is not a constant of type Integer. A name used as an error number in an On Error statement must be a constant of type Integer.
Define the name as an integer constant (with the Const statement), or use an integer numeric value. If the name is the name of a LotusScript® error constant, use %Include to include the file LSERR.LSS in your module.