DIAdem Help

Content Type
Programming Language
Current manual

Property: Worksheets for Workbook

Property: Worksheets for Workbook

Returns a collection of the Excel worksheets.

Set oWorksheets = Object.Worksheets
ObjectWorkbook
Object with this property
oWorksheetsWorksheets
Returned object

The following example creates an Excel workbook and returns the number of worksheets. Refer to the help pages Workbook and Worksheets for detailed examples:

VBScriptPython

 

Dim oMyWorkbook, oMyWorksheets
Set oMyWorkbook = CreateExcelWorkbook()
Set oMyWorksheets = oMyWorkbook.Worksheets
Call MsgBox(oMyWorksheets.Count)
In This Section
Was this information helpful?