Expression out of range
You used a numeric expression whose value at run time is out of the legal range, in one of these contexts:
- As the numeric expression in an On...GoTo or On...GoSub statement.
The value of the expression must be between 0 and 255 inclusive.
- As the designated error number in an Err or Error statement.
The error number must be positive or 0.
- As the designated error number in an Error function call.
The error number must be positive.
Respecify the expression in the statement or in the function call, to ensure that its value falls within the legal range.