jamesmcintyre
New Member
- Joined
- Nov 16, 2022
- Messages
- 7
- Office Version
- 365
- Platform
- Windows
Hello, i am trying to run a macro that print an array of sheets in the description. However i have a macro that hides certain sheets pending other options and when i do the printout option it comes up with an error if one of the ****s has been hidden. The sheets need to remain hidden depending on the options.
The code i currently have is below.
Sub PrintSpecificSheets()
ThisWorkbook.Worksheets(Array("D 30%", "EW 30%", "RW 30%", "S 30%", "W 30%")).PrintOut
End Sub
Is there an option i can include that only prints the visible sheets out of whats included in the above array?
The code i currently have is below.
Sub PrintSpecificSheets()
ThisWorkbook.Worksheets(Array("D 30%", "EW 30%", "RW 30%", "S 30%", "W 30%")).PrintOut
End Sub
Is there an option i can include that only prints the visible sheets out of whats included in the above array?