Range.Errors Property (Excel)
Office 2013 and Int
Contribute to this content
Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.
Allows the user ta ta access eor checking options
4 Syntax
pression Errors
expression A variable that represents 9 Range objet.
4 Remarks
Reference the Errors object to view alist of index values asseciated with eror checking options.
4 Example
In this example, 2 number written as text is pace in cll A. Microsoft Excl then determines i the numbers written as toxin cll AZ and notifies the
user accordingly.
Sub checkForErrors()
Range("A1")Formula = "12"
TF Range("A2") .Errors.Tten(xiMunberAsText) Value ~ True Then
Msglox "The munber is written as text."
Else
MsgBox “The nunber is not written as text.”
End If
End sub
4See also
concepts
Range Object
other resources
Range Object Members