3.2.13 FindWorksheet


Description

Find a worksheet by name.

Syntax

FindWorksheet(name)

Parameters

name
Workbook name

Return

If the named worksheet is found then an Origin Worksheet is returned.

Examples

#with workbook (Book1) active
import PyOrigin
Sheet=PyOrigin.FindWorksheet('Book1')
nCol=Sheet.GetColCount()
nRow=Sheet.GetRowCount()
print('The column number of the worksheet is %s, and the row number of the worksheet is %s' % (nCol,nRow))