NamedRange::InnerObject Property
Gets a Microsoft.Office.Interop.Excel::Range that represents the underlying native object for the Microsoft.Office.Tools.Excel::NamedRange.
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 that represents the underlying native object for the Microsoft.Office.Tools.Excel::NamedRange.
You can use the InnerObject property to access the underlying Microsoft.Office.Interop.Excel::Range for the NamedRange and pass it to a method or property that expects a Microsoft.Office.Interop.Excel::Range passed as a Microsoft.Office.Interop.Excel::Range. For more information, see Programmatic Limitations of Host Items and Host Controls.
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.