Worksheets Property
TOC
Collapse the table of content
Expand the table of content
The document is archived and information here might be outdated

_Workbook.Worksheets Property 

Returns a Sheets collection that represents all the worksheets in the specified workbook. Read-only Sheets object.

Namespace: Microsoft.Office.Interop.Excel
Assembly: Microsoft.Office.Interop.Excel (in microsoft.office.interop.excel.dll)

'Usage
Dim _Workbook1 As _Workbook

Dim returnValue As Sheets
returnValue = _Workbook1.Worksheets

Sheets Worksheets {get;}
public Sheets get_Worksheets();
function get Worksheets() : Sheets;

Using this property without an object qualifier returns all the worksheets in the active workbook.

This property doesn’t return macro sheets; use the Excel4MacroSheets property or the Excel4IntlMacroSheets property to return those sheets.


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

Show:
© 2016 Microsoft