Share via


Name.RefersToRange Property

Returns the Range object referred to by a Name object.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
ReadOnly Property RefersToRange As Range
    Get
'Usage
Dim instance As Name
Dim value As Range

value = instance.RefersToRange
Range RefersToRange { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Range

Remarks

If the Name object doesn't refer to a range (for example, if it refers to a constant or a formula), this property fails.

To change the range that a name refers to, use the RefersTo property.

See Also

Reference

Name Interface

Name Members

Microsoft.Office.Interop.Excel Namespace