NamedRange::Cells Property
Gets a Microsoft.Office.Interop.Excel::Range that represents the cells in the 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 that represents the cells in the NamedRange control.
The following code example creates a NamedRange and colors the interior green. It then displays a series of messages that show how many cells, columns, and rows are in the NamedRange.
This example is for a document-level customization.
Show: