I tried searching the forums for an answer before posting, but could not find anything or missed it.
I have a workbook with 58 worksheets. Data is entered onto sheets as required based on the project someone is working on. Right now, when a person opens the workbook, all of the sheet tabs are visible and they go through the tabs and hide the ones that they won't use for the project. Also, when someone opens the workbook there are 30 hidden sheets that contain background data for calculations in the other sheets.
I would like a person to be able to hide or unhide the 58 sheets with check boxes. These 58 sheets would be hidden when initially opening the workbook and the check boxes would be on the one visible sheet ("Client Info"). Preferably starting at row 10 below some client info they have to enter. I don't want check boxes for the 30 existing hidden sheets, but I still want them accessible if someone right clicks a tab and selects unhide.
Also, it would be great if there was one last checkbox to show all 58 sheets at once.
While searching the internet I came across the vba code below, but did not know how to edit it to make it work. No sure if it is the right way or there is a better way.
I did find and use a macro (GetSheets) to list all of the sheets in the workbook and show the list on another tab. The 58 sheets are listed from row 31 and down. Not sure if it can be done, but would it also be possible to incorporate the sheet list so that as new sheets are added to the list, new check boxes are automatically generated and added to the existing check boxes? This is not super important, but thought I would ask.![]()
Please Login or Register to view this content.
Any help would be appreciated. I'm using 2016 excel.
Thank you for the help.
Bookmarks