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

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,215,771
Messages
6,126,799
Members
449,337
Latest member
BBV123

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