Err.Number Property — Microsoft.VisualBasic.ErrObject
Err.Number
A read/write property containing a numeric value that represents the error code for the last error generated.