-
-
Notifications
You must be signed in to change notification settings - Fork 37
unhideSheet
Julian Halliwell edited this page Feb 27, 2025
·
2 revisions
Unhides (shows) the specified hidden sheet in the UI. If a sheet name or number is not specified, the currently active sheet will be unhidden.
unhideSheet( workbook[, sheetName[, sheetNumber] ] )
-
workbook
spreadsheet object
-
sheetName
string: the name of the sheet to unhide/show OR -
sheetNumber
numeric: the number (1 based, not zero-based) of the sheet to unhide/show
Chainable? Yes.
spreadsheet = New spreadsheet.spreadsheet()
data = [ [ "a", "b" ], [ "c", "d" ] ]
path = ExpandPath( "test.xlsx" )
workbook = spreadsheet.newXlsx( "sheet1" )
spreadsheet.addRows( workbook, data )
.createSheet( workbook, "sheet2" )
.hideSheet( workbook, "sheet1" )
.write( workbook, path, true )
workbook = spreadsheet.read( path )
spreadsheet.unhideSheet( workbook, "sheet1" )
.write( workbook, path, true )