Hello all,
I've been searching the web today looking for a macro that will allow me to print my entire workbook excluding certain hidden sheets (sheet2 and sheet3). I've located macros that print all hidden sheets, macros that exclude certain unhidden sheets, but not the combo I'm looking for. Anyone have any advice on this?
Here's what I'm unsuccessfully working with right now:
Thanks much!
I've been searching the web today looking for a macro that will allow me to print my entire workbook excluding certain hidden sheets (sheet2 and sheet3). I've located macros that print all hidden sheets, macros that exclude certain unhidden sheets, but not the combo I'm looking for. Anyone have any advice on this?
Here's what I'm unsuccessfully working with right now:
Code:
Sub Print_Hidden_And_Visible_Worksheets()
Dim CurVis As Long
Dim sh As Worksheet
For Each sh In ActiveWorkbook.Worksheets
With sh CurVis = .Visible
.Visible = xlSheetVisible
.PrintOut
.Visible = CurVis End
With
Next sh
End Sub
Thanks much!
Last edited by a moderator: