8.2.13 FindWorksheet
It is recommended that you switch to the originpro package. PyOrigin is primarily for users who need to work with Origin version prior to 2021. |
Contents
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))