Excel export to PDF VBA original file name

RaudMees

New Member
Joined
Dec 9, 2019
Messages
20
Office Version
  1. 2016
Platform
  1. Windows
Hello

I've looked few days how to make one simple code and no luck. As I am writing here, then I like to ask a bit more better code.
1) I have Excel file name 0047-5-customer.xlsm and several sheets inside, 2 of them named bom/fittings. I like to get PDF files with name 0047-5-customer-bom.pdf and 0047-5-customer-fittings.pdf. If needed, I can add this original file name into some cell, but this is plan B. PDF files will be in same folder where is original file.

2) Same as point 1, but fittings PDF file will be attached into e-mail (Outlook) and ready to send. Subject line: Order 0047-5-customer-fittings
If it's possible...

In Excel I will make 2 buttons for points 1 and 2, so 2 different commands.

Thanks in advance!
RM
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)

Forum statistics

Threads
1,216,116
Messages
6,128,933
Members
449,480
Latest member
yesitisasport

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