Error number must be INTEGER
You used a numeric constant as an error number in an On Error statement, but it is not an integer. The value of a constant used as an error number in an On Error statement must be an integer.
Change the numeric constant to an integer.