Skip to content
Julian Halliwell edited this page Mar 4, 2022 · 5 revisions

Returns properties of an individual sheet within a workbook as a struct.

sheetInfo( workbook[, sheetNumber ] )

Required arguments

  • workbook spreadsheet object

Optional arguments

  • sheetNumber numeric default=1

Chainable? Yes but ends the chain.

Properties returned

  • displaysAutomaticPageBreaks (boolean)
  • displaysFormulas (boolean)
  • displaysGridlines (boolean)
  • displaysRowAndColumnHeadings (boolean)
  • displaysZeros (boolean)
  • hasComments (boolean)
  • hasMergedRegions (boolean)
  • isCurrentActiveSheet (boolean)
  • isHidden (boolean)
  • isRightToLeft (boolean)
  • name (string)
  • numberOfMergedRegions (integer)
  • printsFitToPage (boolean)
  • printsGridlines (boolean)
  • printsHorizontallyCentered (boolean)
  • printsRowAndColumnHeadings (boolean)
  • printsVerticallyCentered (boolean)
  • recalculateFormulasOnNextOpen (boolean)
  • visibility (string): one of "VISIBLE", "HIDDEN", "VERY_HIDDEN"

Example

spreadsheet = New spreadsheet();
workbook = spreadsheet.new();
firstSheetProperties = spreadsheet.sheetInfo( workbook );
spreadsheet.createSheet( workbook, "second sheet" );
secondSheetProperties = spreadsheet.sheetInfo( workbook, 2 );
Clone this wiki locally