ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Printing Question (https://www.excelbanter.com/excel-discussion-misc-queries/10299-printing-question.html)

spartanmba

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

Thanks,
John

Nick Hodge

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
HIS


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

Thanks,
John





All times are GMT +1. The time now is 12:54 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com