Hi,
If I run the 'HideCalendarSheets()' when the sheets are already hidden it goes to debug. Is there a way to exit the code if the sheets are hidden?
Thank you
Please Login or Register to view this content.
Hi,
If I run the 'HideCalendarSheets()' when the sheets are already hidden it goes to debug. Is there a way to exit the code if the sheets are hidden?
Thank you
Please Login or Register to view this content.
There are problems with using a Sheets object when some of the included sheets are hidden.
You can solve that by hiding the same way that you un-hide, with
Please Login or Register to view this content.
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
.
Another method. Did not include sheet 1 as there must be at least one sheet visible at all times.
Please Login or Register to view this content.
There are more sheets in the workbook that will always stay in view.
I can't seem to get either one to work sorry.
Last edited by crazyforexcel; 01-16-2020 at 06:05 PM.
Refer to the attached file.
Thanks Logit but the only sheets that I want to hide are 1-12 for the Calendar months.
Please Login or Register to view this content.
That is perfect thanks for all of your help.
You are welcome.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks