Edit

Share via


_Worksheet.Cells Property

Definition

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

public:
 property Microsoft::Office::Interop::Excel::Range ^ Cells { Microsoft::Office::Interop::Excel::Range ^ get(); };
public Microsoft.Office.Interop.Excel.Range Cells { get; }
Public ReadOnly Property Cells As Range

Property Value

Remarks

Because the Item[Object] 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.

Applies to