8.2.39 WorksheetPages

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.


Description

Get the WorksheetPages.

Syntax

 WorksheetPages(PageName)
 WorksheetPages()

Parameters

  1. PageName
  2. no-argument

Return

WorksheetPage object

Examples

EX1

import PyOrigin
#Add a new sheet named 'Mysheet' in the workbook 'Book1'
PyOrigin.WorksheetPages('Book1').AddLayer('Mysheet')

EX2

import PyOrigin
if PyOrigin.WorksheetPages().GetCount() > 0:
    # Loop for each workbook.
    print('Prall workbook name:')
    for book in PyOrigin.WorksheetPages():
                print(book.GetName())