Retorna ou define um valor numérico especificando um erro. Number é a propriedade padrão do objeto Err.
Sintaxe
object.Number
Argumentos:
Object: Obrigatório. Sempre o objeto Err.
O código a seguir ilustra o uso da propriedade Number.
Sub RaiseBuiltInError()
On Error Resume Next ' Enable error handling.
Err.Raise 13 ' Raise a Type Mismatch error.
Output = "Error # " & Err.Number & ": " & Err.Description
Err.Clear ' Clear the error.
End Sub
'Output: Error # 13: Type mismatch