Returns the description for the generated run-time error. Read-only.
object.Description as String
This property is useful if you are running a macro and you want to catch any run-time errors and return the description of that error or handle the error based on the description.
This property can be used in conjunction with the OnError action. This action sets an error handler label. Macro execution will then skip to this label within the macro if a run-time error occurs. The Description property can be used to return the description of the generated run-time error.
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.
The following macro will catch any runtime error, handle it according to its error number and store a description of the error in a newlook variable: MACRO EDITOR
|
OnError action | Action property | Line property | Macro property | Number property
© 2004-2021 looksoftware. All rights reserved.