hide worksheet and reorder sheets
See original GitHub issueHello,
Would be useful if I could hide/unhide a worksheet. Currently couldn’t see an option to do so.
Maybe as some property:
var sheet = workbook.addWorksheet('My Sheet', {properties: {hidden: true}});
Along with some function to check hidden status
workbook.getWorksheet('My Sheet').IsHidden(); // true or false
And to also toggle hidden status on the fly:
workbook.getWorksheet('My Sheet').hidden = true; // or false...
Would also be useful to re-order sheets in the workbook programmatically. I guess you could technically just “add” sheets in the correct order then circle back around and add data as necessary… but reordering sheets would allow you to not need to do that.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Hide or Unhide worksheets - Microsoft Support
To hide the sheet, select Hide. To unhide hidden sheets, select them in the Unhide dialog that appears, and then select OK. The...
Read more >Protect, hide, and edit sheets - Google Docs Editors Help
Hide or unhide a sheet. To hide a sheet: · Your sheet will be hidden from view. ; Copy a sheet. To copy...
Read more >How to Hide & Unhide a Sheet using VBA in Excel
This tutorial explains to you how to hide and unhide a worksheet using a VBA code. It also shows you different ways to...
Read more >Reorder Hidden Sheets | MrExcel Message Board
You then can sort the list any way you want. Then highlight all the sheet names and run the second macro named called...
Read more >How to hide sheets in Excel - Ablebits
Hide worksheets by clicking the Hide Sheet command on the ribbon. Keyboard shortcut to hide Excel sheets. Although Microsoft Excel provides no ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
+1 on the hiding of sheets also
const wb = new Excel.Workbook(); wb.views = [{ activeTab: 1 }]; wb.addWorksheet(‘first_sheet’, { state: ‘hidden’ }); wb.addWorksheet(‘second_sheet’);
this code is not working to hide the second sheet can explain how you did this