How to quickly print hidden worksheets in Excel?
If you have a workbook which contains hundreds of worksheets, some visible and other hidden, and now you only want to print the hidden worksheets. Because Excel can’t print the hidden sheets by default, I will introduce you a simple VBA code to print the hidden worksheets. Please do as follows:
1. Click Developer > Visual Basic, There will be a new window displayed. Then click Insert > Module, then input the following codes in the module:
VBA: print hidden worksheets in Excel
Sub PrintHiddenSheets()
Dim wSheet As Worksheet
Dim CurStat As Variant
For Each wSheet In ActiveWorkbook.Worksheets
If Not wSheet.Visible Then
CurStat = wSheet.Visible
wSheet.Visible = xlSheetVisible
wSheet.PrintOut
wSheet.Visible = CurStat
End If
Next
End Sub
2. And then click button to run the code, and all of the hidden worksheets will be printed out.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!