Printing Question

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

Guest

How do I print worksheet pages from various workbooks from one worksheet.
Either an Excel or VBA solution woudld be fine.

Thanks,
John
 
John

In VBA you could open all the workbooks and then print them, this code opens
two and prints everything in each

Sub PrintOtherBooks()
Dim wb1 As Workbook, wb2 As Workbook
Set wb1 = Workbooks.Open("C:\Book1.xls")
wb1.PrintOut
wb1.Close SaveChanges:=False
Set wb1 = Nothing
Set wb2 = Workbooks.Open("C:\Book2.xls")
wb2.PrintOut
wb2.Close SaveChanges:=False
Set wb2 = Nothing
End Sub



--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
(e-mail address removed)
 

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