VBA to run email with attachment of VBA compiled results

hooper12345

New Member
Joined
May 12, 2015
Messages
36
Hello helpful readers,

I have a very lengthy and complicated VBA code that is currently running through the data entered on one sheet, compiling it on another and then formatting those results onto a mock paper print out that my company uses. What I need is to email those paper forms while still having the option to print. The layout isn't perfect and requires some adjusting and it does change yearly.

I guess what I'm asking is, How do I insert a code (I don't have one) to run automatically after the VBA code runs to compile the reports? I would like them to be attachments that don't need to be saved in an outside folder since all the needed information is readily available in the workbook.

Thanks for your help.
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December

Forum statistics

Threads
1,215,497
Messages
6,125,157
Members
449,208
Latest member
emmac

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