Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Automated Printing

Maybe somebody has encountered a request similar to
his... I have a user that has 3 or 4 different workbooks
and he wants to print all of them with consecutive page
numbers. The user now spends hours doing the page
numbering. What would be the best way to handle this in an
automated fashion?

Many thanks!

Brady Snow
McKinney, Texas



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Automated Printing

The easiest might be to pull a copy of all the sheets into a single
workbook, group the sheets and print the workbook. Then delete this dummy
workbook.

Sub Print4Books()
Dim wkbk as Workbook
' create new book with sheets from first workbook
Workbooks("Book1.xls").Sheets.copy
' set a reference to the new workbook
set wkbk = ActiveWorkbook
' copy sheets from second
Workbooks("Book2.xls").Sheets.Copy _
After:=wkbk.worksheets(wkbk.worksheets.count)
' copy sheets from third
Workbooks("Book3.xls").Sheets.Copy _
After:=wkbk.worksheets(wkbk.worksheets.count)
' copy fourth
Workbooks("Book4.xls").Sheets.Copy _
After:=wkbk.worksheets(wkbk.worksheets.count)
' print sheets
wkbk.WorkSheets.Select
wkbk.Windows(1).SelectedSheets.Printout
' delete wkbk
wkbk.close SaveChanges:=False

End Sub

Assumes the workbooks are all open when you run the macro.


--
Regards,
Tom Ogilvy

"Brady Snow" wrote in message
...
Maybe somebody has encountered a request similar to
his... I have a user that has 3 or 4 different workbooks
and he wants to print all of them with consecutive page
numbers. The user now spends hours doing the page
numbering. What would be the best way to handle this in an
automated fashion?

Many thanks!

Brady Snow
McKinney, Texas





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
Automated shifts. Is it possible? AcacioJMartins New Users to Excel 1 February 1st 11 12:29 AM
Excel'03 - non printing help/hint automated messages working Excel Discussion (Misc queries) 5 July 25th 07 02:06 AM
Automated Timecard Sarah Excel Discussion (Misc queries) 3 May 9th 07 07:57 PM
Automated printing Newbeetle Excel Discussion (Misc queries) 2 September 24th 06 09:27 AM
Automated Dynamic Printing Area? smplogc Excel Discussion (Misc queries) 9 April 30th 06 05:13 PM


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

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

About Us

"It's about Microsoft Excel"