Skip to content

setSheetVisibility

On this page

Set the visibility state of a worksheet in the workbook.

Initialises the Workbook.Sheets metadata array if it does not yet exist.

setSheetVisibility(wb: WorkBook, sh: number | string, vis: 0 | 1 | 2): void

Parameters

NameTypeRequiredDescription
wbWorkBookYesThe workbook containing the sheet
shnumber | stringYesSheet name or zero-based index
vis0 | 1 | 2YesVisibility level: 0 = visible, 1 = hidden, 2 = very hidden

Returns

void