How do i print all visible sheets ?

D

Dave Peterson

Record a macro when you select/group all the sheets and print them. Remember to
ungroup them when you're done.
 
P

Per Jessen

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
 
D

Dave Peterson

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.
 
D

Dave Peterson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top