Filer Data, copy and send email from outlook

Akshay_divecha

Board Regular
Joined
Mar 11, 2014
Messages
70
Dear Experts,

I have no clue on how to write a VBA code and need your help to automate task.

I have 4 worksheets

Sheet 1 contains all the data
Sheet1.png


Sheet 2 contains email IDs, subject, etc..
Sheet2.png


Sheet 3 contains "Mailbody1"
Sheet3.png


Sheet 4 contains "Mailbody2"
Sheet4.png



Sheet2 , column E and sheet 1, column I contains reference number.

My requirement when run macro is,

1. copy reference no from sheet2 and set filter at Sheet 1 column I

eg copy sheet2 reference no "123456789" set a filer in sheet 1, column I and there will be 2 records in row 2 & 3.

2. copy the records and paste it in outlook along with the mail body mentioned in sheet 2 column D.
3. send that email to ID's mentioned in Sheet 2 column A with the subject mentioned in Sheet 2 column C.


Please help
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

Forum statistics

Threads
1,215,695
Messages
6,126,261
Members
449,307
Latest member
Andile

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