LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default printing macro?

Untested...

How about a miserable workaround.

Instead of printing to the printer, you print to a different file for each
sheet.

It would be printer type specific--the files would have all that specific
printer's control characters embedded in that file. (Put the files in a
dedicated folder--nothing else there to make life easier.)

Then you could shell to DOS and concatenate the .prn files into one large file:
copy /b *.prn AllPRN.ALL

Then copy that to your printer:
copy /b allprn.all lpt1:





James Cornthwaite wrote:

I have (with help) written the following macro.

It essentially prints the first page of every worksheet in a workbook

with the exception the "import" and "client details worksheets".

My problem is this macro code causes each page to be sent to the printer as
a seperate job.
This wouldn't be a problem but i'm in a busy office (and though quick) other
printouts will sneak in between the pages.

Is there any coding variation which would lead to only one job being sent to
the printer.

Many thanks in anctipation.

James

Sub PrintFullAccounts()

Dim theSheet As Worksheet

For Each theSheet In ActiveWorkbook.Worksheets
If theSheet.Name = "import" Or theSheet.Name = "client details" Then
'do nothing
Else
'print first page
theSheet.PrintOut From:=1, To:=1, Copies:=1
End If

Next theSheet

End Sub


--

Dave Peterson
 
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
Macro for printing Ewout Excel Worksheet Functions 1 September 23rd 06 11:33 PM
Macro Printing Dave Excel Worksheet Functions 2 October 24th 05 05:56 PM
Printing Macro Gary T Excel Programming 3 January 13th 05 01:45 PM
Need help with printing macro Baleor Excel Programming 1 September 30th 04 08:28 PM
Printing in a Macro Don Guillett[_4_] Excel Programming 0 August 8th 03 01:11 AM


All times are GMT +1. The time now is 09:28 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"