Error Object
Excel Developer Reference |
Represents a spreadsheet error for a range.
Remarks
Use the Item property of the Errors object to return an Error object.
Once an Error object is returned, you can use the Value property, in conjunction with the Errors property to check whether a particular error checking option is enabled.
Note |
---|
Be careful not to confuse the Error object with error handling features of Visual Basic. |
Example
The following example creates a formula in cell A1 referencing empty cells, and then it uses Item(
index
), where
index
identifies the error type, to display a message stating the situation.
Visual Basic for Applications |
---|
|
See Also