Printing Excel to Preexisting Postscript File

jrcabcd

New Member
Joined
Aug 20, 2008
Messages
2
Hi,

I need to print an Excel sheet to a postscript file, and I'm using the PrintOut method to do this. But, I need to print the sheet to an already existing postscript file. Unfortunately, unlike Word's PrintOut method, Excel's PrintOut method does not have an append argument.

Anyone know of a workaround? Why doesn't Excel's PrintOut have an append argument?

Here's my line of code that does not work because append is not a valid argument:

Workbooks("testexcel.xls").Sheets("Sheet1").PrintOut printtofile:=True, _
prtofilename:="C:\temp\test.ps", append:= true

If you're curious, the reason I need to append to an already existing postscript file is that I'm creating a 2-page pdf report, where the 1st page is from a Word doc, and the 2nd page from an Excel doc. Thus, I need to write the Excel doc to a postscript file that I've already written the Word doc to.

Another alternative I thought of is to print both pages of the report to pdf, then merge them in PDFDistiller. But, I am not sure whether you can do this PDFDistiller call throught VBA. Anyone know if you can?

Thanks a lot,
Jonathan

<!-- / message -->
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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