_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)

Syntax

'Declaration
ReadOnly Property Cells As Range
    Get
'Usage
Dim instance As _Worksheet
Dim value As Range

value = instance.Cells
Range Cells { get; }

Property Value

Type: Microsoft.Office.Interop.Excel.Range

Remarks

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.

See Also

Reference

_Worksheet Interface

_Worksheet Members

Microsoft.Office.Interop.Excel Namespace