Excel to PDF Question

mikechambers

Active Member
Joined
Apr 27, 2006
Messages
397
I am using Excel 2003 and I have the full version of Adobe Acrobat 8 Standard, not the Microsoft plugin. I am just trying to export a workbook to a PDF using VBA. I have tried the following:

Sheets(Array("Sheet1", "Sheet2", "Sheet3")).Select
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True

However, the problem is that I can't get it to include all sheets in the workbook in the SAME PDF. It was to make each spreadsheet a separate PDF file. Even without using VBA, I can't get it to work if I am just Printing it to the PDF Writer. I have selected Entire Workbook, All Active Sheets, All Selected Sheets, nothing works. Now if I just click the Adobe button on the toolbar, it works just fine, but again, I am trying to put this at the end of a sub routine so it finishes as a PDF. Any suggestions?
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
I have answered it myself. It has to do with the DPI settings of the printer. In order for this to save to one PDF file, DPI settings have to be the same for all worksheets in the workbook.
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,686
Members
449,048
Latest member
81jamesacct

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