Printing forom different tabs

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to print just the first page from several tabs in a workbook.
The code is:

ActiveSheet.PrintOut From:=1, To:=1, Copies:=1

But how do I write the macro so that the printing selection is repeated for
the next tab until the end of the workbook?
 
Fredrik,

Here is something I have used it has worked pretty well for me.

Sub PrintAll
Dim wks As Worksheet

Application.ScreenUpdating = False
On Error Resume Next

For Each wks In Worksheets
wks.PrintOut From:=1, To:=1, Copies:=1
Next wks

Application.ScreenUpdating = True

On Error GoTo 0

End Sub
 

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

Back
Top