Excel VBA to convert files to PDF

Anandpersad

New Member
Joined
Oct 18, 2014
Messages
31
Hi All,

I am new to VBA and looking for help. This macro will save me lots of time daily.

In excel 2013, I would like to create the following VBA.
In Cell “A1” I have written of the directory where all the files are saved.
I am now looking for a macro, which open the directory as mentioned in cell “A1”.

Let say the directory mentioned in cell A1 is: U:\Testing Macro\Macro testing
Now on that particular directory, I would like to convert the: *.xlsx; *xls; *.docx; *.doc; *.png and *.jpeg files to .pdf
The converted files should be saved on the same directory and with the same name, only now as a PDF file
I googled a lot and read a lot but cannot find this VBA.

Please please help me out here.

Thanks and regards,

Anand
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.

Forum statistics

Threads
1,214,918
Messages
6,122,246
Members
449,075
Latest member
staticfluids

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