question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

hide worksheet and reorder sheets

See original GitHub issue

Hello,

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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
king612commented, Dec 9, 2016

+1 on the hiding of sheets also

1reaction
vinothsm92commented, Jul 30, 2018

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found