Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
masagua4u
 
Posts: n/a
Default printing multiple workbooks.

Is there a way to write a macro to print multiple worksheets and have each
workbook stapled separately. I am new to this so please help.
  #2   Report Post  
John Mansfield
 
Posts: n/a
Default

You could try something set up similar to that below. The first routine
(PrintMultipleWorkbooks) opens a workbook. It then calls on the second
routine (Print_Sheets) to print it. Once printed, the first workbook is
closed and the second workbook is opened. The same process repeats.

Sub PrintMultipleWorkbooks()
Application.ScreenUpdating = False
Workbooks.Open Filename:="C:\WB_1.xls"
Call Print_Sheets
ActiveWorkbook.Close
Workbooks.Open Filename:="C:\WB_2.xls"
Call Print_Sheets
ActiveWorkbook.Close
Application.ScreenUpdating = True
End Sub

Sub Print_Sheets()
Dim sht
For Each sht In Sheets
If sht.Visible Then sht.Select Replace:=False
Next
ActiveWindow.SelectedSheets.PrintOut copies:=1
ActiveSheet.Select
End Sub

----
Regards,
John Mansfield
http://www.pdbook.com

"masagua4u" wrote:

Is there a way to write a macro to print multiple worksheets and have each
workbook stapled separately. I am new to this so please help.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing multiple portait and landscape workbooks at the same time Sbaitso Excel Discussion (Misc queries) 7 March 30th 05 05:49 PM
Problems when printing large workbooks Jayne Excel Discussion (Misc queries) 0 March 8th 05 03:43 PM
adding certain cells in multiple worksheets in multiple workbooks Stephen via OfficeKB.com Excel Worksheet Functions 1 February 4th 05 08:31 PM
Multiple worksheets, multiple workbooks peter marsh Excel Worksheet Functions 1 January 4th 05 03:55 AM
Enable Double sided printing contiuously when printing multiple s. Lee Excel Discussion (Misc queries) 1 November 27th 04 01:58 AM


All times are GMT +1. The time now is 05:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"