So I'm trying to go through a workbook and, based on some user inputs, hide certain sheets and charts (these charts are their own tab, i.e. a chart object). Here's a sample code I wrote for a dummy workbook I have. Unfortunately it doesn't work, I think because the loops are nested. However if I can figure out how to fix this code I can easily adapt it to my other real problem. Please let me know what I'm doing wrong and/or how I can solve this issue.
Is there a way to scan through the workbook in one loop (sheets and charts together)? I think that's what I'm missing here. Thanks!
Bookmarks