Answers for "VBA - Print Visible and Hidden Worksheets"

VBA
0

VBA - Print Visible and Hidden Worksheets

Sub PrintHiddenAndVisibleWorksheets()
    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
Posted by: Guest on April-22-2022

Code answers related to "VBA - Print Visible and Hidden Worksheets"

Code answers related to "VBA"

Browse Popular Code Answers by Language