Tip: If you can NAME your sheets in a way that indicate which should be printed, that would help in the discerning of which to apply the HIDE macro to. This would make it easier than maintaining code changes or a manual list somewhere.
So, maybe add a unique character to the sheetname that his is to be allowed. Sheet1, Sheet2, Sheet3...and you only want it to affect sheets 1 and 2, perhaps name them:
Sheet1#, Sheet2#, Sheet3
Then use this test in your macro:
========
Another way might be to include a key cell on each sheet. If AA1 = "hide" then the macro runs on that sheet...not as elegant and easier to break if columns get deleted or such, but it's an option.
Bookmarks