The "Number" property contains the error number.

Type Info:

Number As Long
Example:
Dim ErrorNo As Long
Dim MyError As Error

Set MyError = Application.Errors.Item(1)

ErrorNo = MyError.Number
Remarks: Read-only property.
See also:

Class Error | Class Errors

Last Updated: 03/19/21