Export (0) Print
Expand All
Expand Minimize

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

'Usage
Dim _Worksheet1 As _Worksheet

Dim returnValue As Range
returnValue = _Worksheet1.Cells

Range Cells {get;}
public Range get_Cells();
function get Cells() : Range;

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.


Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms

Community Additions

ADD
Show:
© 2015 Microsoft