Excel Macro to send emails through outlook for multiple receipients

shabbs

New Member
Joined
May 27, 2015
Messages
2
I need the Macro VBA code for the below scenario

Sheet 1 of the excel will have data from column A to F. column A will have vendor number. Column B to F will contain the data related to that vendor it could be multiple lines of data.

sheet 2 will contain the vendor number in column A (Same as sheet 1) and column B will have the corresponding email address against each vendor number.

The Macro should now filter by every unique vendor number in the sheet 1 and copy the contents from column B to F for that respective vendor and paste that into the body of the New email (outlook) and pick the email address from sheet 2 and send the email automatically. similarly the same step should be repeated for every vendor number (filter + copy contents + add to email body)

Please note : the subject is going to be common for all emails + the body of the email will include a standard text which is common for all emails along with the contents it will copy from excel.

can someone share the code for this. May god bless you for your help.
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,215,832
Messages
6,127,152
Members
449,366
Latest member
reidel

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