Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Cells Property
Collapse the table of content
Expand the table of content

_Worksheet.Cells Property

Returns a Range object that represents all the cells on the worksheet (not just the cells that are currently in use). Read-only.

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

Range Cells { get; }

Because the Item property is the default property for the Range object, you can specify the row and column index immediately after the Cells keyword. For more information, see the Item property.

Using this property without an object qualifier returns a Range object that represents all the cells on the active worksheet.

Show:
© 2015 Microsoft