VBA to save as PDF, and email

Danny_S_

New Member
Joined
Mar 27, 2018
Messages
8
Ive been searching and found bits that let me save as PDF and email, but not together. Im not well versed in VBA so havent been able to figure out how to link them. What Im after is the following:


  1. Save current sheet as a PDF
  2. Save into a specific folder “C:\Folder1\Folder2” without the folder select dialog box appearing
  3. file name defined in a cell (say X10) [Cell A will say 12345---67890 for example, so i need to add the ".pdf" after as .pdf wont be in the cell
  4. Then open outlook to send the attachment to Person1@hotmail.com (static name)
  5. And CC in email address in cell B1
  6. Subject line is “ABunchOfWords “ and Cell A1 (combined)
  7. With body message as “words” & Cell “Y10” & “words”
  8. With outlook preview of the message displayed and viewable and editable before clicking Send
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,215,359
Messages
6,124,488
Members
449,165
Latest member
ChipDude83

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