+ Reply to Thread
Results 1 to 2 of 2

How do I print only the hidden worksheets in a workbook?

  1. #1
    Jking
    Guest

    How do I print only the hidden worksheets in a workbook?



  2. #2
    Jason Morin
    Guest

    Re: How do I print only the hidden worksheets in a workbook?

    One way:

    Sub PrintHiddenWS()
    Dim ws As Worksheet
    Dim i As Long
    Application.ScreenUpdating = False
    i = 0
    For Each ws In ThisWorkbook.Worksheets
    With ws
    If .Visible = False Then
    i = i + 1
    .Visible = True
    .PrintOut copies:=1, collate:=True
    .Visible = False
    End If
    End With
    Next
    Application.ScreenUpdating = True
    If i = 0 Then
    MsgBox "No hidden sheets found!"
    End If
    End Sub

    ---
    HTH
    Jason
    Atlanta, GA

    >-----Original Message-----
    >
    >.
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1