Save an Excel file as PDF, without first opening the Excel file

jagrenet

Board Regular
Joined
Feb 23, 2022
Messages
81
Office Version
  1. 365
  2. 2013
  3. 2011
  4. 2010
Platform
  1. Windows
Hello Gurus,

I am looking for a way to basically save a copy of an existing Excel file as a .pdf, without having to open the Excel file to do so.
I currently have the code working ..... and it does save the workbook as a .pdf just fine. I am using -
"Workbooks.Open" and subsequently, .... "
"ExportAsFixedFormat _
Type:=xlTypePDF, _ " (etc.)

As stated, ... this works exactly as it should however, I would like to find a way to convert the file to a .pdf without having to use Workbooks.Open.
Additionally, I would like to keep the original spreadsheet, as it is used on an ongoing monthly basis, with statistics added to it regularly. The .pdf "copy" is used in a report that gets sent to the client each month.

Any ideas how too achieve this ???
Thanks in advance.
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Can you tell us why the workbook should not be opened?
 
Upvote 0
Can you tell us why the workbook should not be opened?
Primarily because I am looking to speed up the process of creating the client report. This would be one of many steps I am taking to enhance efficiency of my code.
If it can't be done .... that's ok.
But, if it can be done, I would be happy to employ any method that is viable.

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,875
Members
452,363
Latest member
merico17

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