Multi Sheet Printing.

WERNER SLABBERT

Board Regular
Joined
Mar 3, 2009
Messages
104
Hey All you excel gods out there...
here is my Macro for printing 4 Different sheets at once.

Code:
Sub PRINTALL()
    
    Sheets(Array("Index", "Main", "Addendum Page", "Notes Pages")).Select
    Application.ActivePrinter = "CutePDF Writer on CPW2:"
    ExecuteExcel4Macro _
    "PRINT(1,,,1,,,,,,,,2,""CutePDF Writer on CPW2:"",,TRUE,,FALSE)"

End Sub

when i run it it starts with the spooling like normal and then roughly 1/3 of the way ( 247 pages ) it pops out a save message. for cute pdf. wich is wrong cause it has to only do this after all the pages have been spooled.and then at the end of the spooling it posp out another save message. ...

then trying to open the first gives you a corrupted error ... to the effect of the pdf is stuffed. and then the second opens but only the butt end of my workbook printed there. like the last two sheets only...

any advise on this crappy error?

Regards
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,213,531
Messages
6,114,172
Members
448,554
Latest member
Gleisner2

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top