Find a worksheet by name.
FindWorksheet(name)
If the named worksheet is found then an Origin Worksheet is returned.
#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))