How do i print all visible sheets ?

  • Thread starter Thread starter Luc
  • Start date Start date
Record a macro when you select/group all the sheets and print them. Remember to
ungroup them when you're done.
 
Hi

Try this one:

Sub printSheets()
For Each sh In ThisWorkbook.Sheets
If sh.Visible = True Then
sh.PrintOut
End If
Next
End Sub

Regards,
Per

Luc said:
Thanks, but the number of sheets is not fix, it can be 2 to x
 
Rightclick on any of the sheet tabs that is visible.
You'll see an option to "select all sheets"
This will select all 2 to x sheets.
 
Or you could just record a macro when you show the print dialog:

File|Print (in xl2003 menus)
Select entireworkbook

The hidden sheets won't be printed.
 
Back
Top