scotthannaford1973
Board Regular
- Joined
- Sep 27, 2017
- Messages
- 110
- Office Version
- 2010
- Platform
- Windows
Hi all
I have a workbook with a huge number of worksheets that are optional, depending on the work they are being used for. I have a master worksheet that lists all of the worksheets and I'd like to add a button for each worksheet on that list that will hide/unhide the wokbook depending on whether or not it's used. I can record a macro to hide, another to unhide etc but I can't work out the code to "hide worksheet if visible, unhide if workbook is hidden, no error message!)". Can anyone advise?
cheers!
I have a workbook with a huge number of worksheets that are optional, depending on the work they are being used for. I have a master worksheet that lists all of the worksheets and I'd like to add a button for each worksheet on that list that will hide/unhide the wokbook depending on whether or not it's used. I can record a macro to hide, another to unhide etc but I can't work out the code to "hide worksheet if visible, unhide if workbook is hidden, no error message!)". Can anyone advise?
cheers!