Number Property

Returns the error code of the generated run-time error. Read-only.

object.Number as Integer

Use

This property is useful if you are running a macro and you want to catch any run-time errors and handle the error based on its number.

It should be used in conjunction with the OnError action. This action sets an error handler label. Macro execution will skip to this label within the macro if a run-time error occurs. The Number property can then be used to determine the type of error that has occurred and handle the error appropriately.

TIP!

The action, description, line, macro and number properties can all be used with the Err object to return more information about the run-time error that has been generated.

See Also

OnError action , Description property, Action property, Macro property, Number property, Run-time errors

Applies To

Err object


© 2004-2021 looksoftware. All rights reserved.