VBA to open mail attachement, run excel macro, then save as .pdf and email.

BTSOsupport

New Member
Joined
Jan 8, 2014
Messages
1
Hi All,

New poster here on the site; I am a IT professional working in SAP BW/BOBJ. I need a little help from my VBA friends however.

I have scheduled a report to be emailed to me daily, I need a VBA script to open the attachement then run an excel macro to format the file correctly. Finally, the file must then be saved as a PDF and emailed to a user.

I do have some VBA scripting done as far as opening the file from outlook, converting to PDF and emailing. My trouble comes on executing the macro; I am unsure how to direct VBA to execute the Macro in this chain.

Thanks in advance for the help!
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,186,908
Messages
5,960,517
Members
438,481
Latest member
KBChristensen

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
Top