3.2.39 WorksheetPages


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())