NamedRange::RefersToRange Property
Gets the Microsoft.Office.Interop.Excel::Range referred to by a NamedRange control.
Assembly: Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
Property Value
Type: Microsoft.Office.Interop.Excel::Range^A Microsoft.Office.Interop.Excel::Range referred to by a NamedRange control.
Use the RefersTo property to change the range that a NamedRange control refers to.
The following code example starts a series of day names and then creates a NamedRange to contain the series. It then uses the AutoFill method to complete the series. AutoFill requires a Microsoft.Office.Interop.Excel::Range as a parameter.
This example is for a document-level customization.
Show: