Copy excel range to outlook mail body based on filtered criteria

vaibhav106

New Member
Joined
Jan 28, 2009
Messages
40
Hi Experts,
I am on project to generate auto-mails based on filtered email id column.

in Excel, I am filtering 1 email id in column M, copy filtered data from column B to J & paste it in outlook body. Copy that filtered email ID in To field of outlook. Send the email.

Again I filter for next email id in column M, copy filtered data from column B to J & paste it in outlook body. Copy that filtered email ID in To field of outlook. Send the email.

Now I have 500+ email Ids to whom I want to send mail. Above process is very time consuming.

Considering the capabilities of macros to handle repetitive work very easily, can we have some simple VBA code to generate auto-mails base on filtered criteria?

sample table given below.....
SR NOReaceived DatePOD NumberLocationFile BarcodeStockist NameChemist Name / Patient nameInvoice NumberInvoice DateRemarkDEOmail sent onstockist mail iddepo mail id
108-Mar-18161820083172AHMEDABADMUMCL063360ALLIED TRADE CORPORATIONAMRUT PHARMACY-AKOTADB-T/2456032-Feb-18 SHRINATH allied.firoz@gmail.comahm@cipla.com
208-Mar-18161820083172AHMEDABADMUMCL063361ALLIED TRADE CORPORATIONAMRUT PHARMACY-AKOTADB-T/27291224-Feb-18 SHRINATH allied.firoz@gmail.comahm@cipla.com
308-Mar-18161820083172AHMEDABADMUMCL063362ALLIED TRADE CORPORATIONSANJIV PHARMACY-AKOTADB-T/26473617-Feb-18 SHRINATH allied.firoz@gmail.comahm@cipla.com
408-Mar-18161820083172AHMEDABADMUMCL063363ALLIED TRADE CORPORATIONSANJIV PHARMACY-AKOTADB-T/27177723-Feb-18 SHRINATH allied.firoz@gmail.comahm@cipla.com
1628-Mar-181043308645AHMEDABADMUMCL063511AHMEDABAD MEDICAL CORPORATIONRAJ MEDICAL AND PRO STOREST/110681-Mar-2018 PRAVIN15-03-2018amcmanil@yahoo.comahm@cipla.com
1638-Mar-181043308645AHMEDABADMUMCL063512AHMEDABAD MEDICAL CORPORATIONRAJ MEDICAL AND PRO STOREST/110421-Mar-2018 PRAVIN15-03-2018amcmanil@yahoo.comahm@cipla.com
1648-Mar-181043308645AHMEDABADMUMCL063513AHMEDABAD MEDICAL CORPORATIONRAJ MEDICAL AND PRO STOREST/110671-Mar-2018 PRAVIN15-03-2018amcmanil@yahoo.comahm@cipla.com

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup>

Thanks in advance.

Vaibhav
 

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"
Hi Experts,
I am on project to generate auto-mails based on filtered email id column.

in Excel, I am filtering 1 email id in column M, copy filtered data from column B to J & paste it in outlook body. Copy that filtered email ID in To field of outlook. Send the email.

Again I filter for next email id in column M, copy filtered data from column B to J & paste it in outlook body. Copy that filtered email ID in To field of outlook. Send the email.

Now I have 500+ email Ids to whom I want to send mail. Above process is very time consuming.

Considering the capabilities of macros to handle repetitive work very easily, can we have some simple VBA code to generate auto-mails base on filtered criteria?

sample table given below.....
SR NOReaceived DatePOD NumberLocationFile BarcodeStockist NameChemist Name / Patient nameInvoice NumberInvoice DateRemarkDEOmail sent onstockist mail iddepo mail id
108-Mar-18161820083172AHMEDABADMUMCL063360ALLIED TRADE CORPORATIONAMRUT PHARMACY-AKOTADB-T/2456032-Feb-18 SHRINATH allied.firoz@gmail.comahm@cipla.com
208-Mar-18161820083172AHMEDABADMUMCL063361ALLIED TRADE CORPORATIONAMRUT PHARMACY-AKOTADB-T/27291224-Feb-18 SHRINATH allied.firoz@gmail.comahm@cipla.com
308-Mar-18161820083172AHMEDABADMUMCL063362ALLIED TRADE CORPORATIONSANJIV PHARMACY-AKOTADB-T/26473617-Feb-18 SHRINATH allied.firoz@gmail.comahm@cipla.com
408-Mar-18161820083172AHMEDABADMUMCL063363ALLIED TRADE CORPORATIONSANJIV PHARMACY-AKOTADB-T/27177723-Feb-18 SHRINATH allied.firoz@gmail.comahm@cipla.com
1628-Mar-181043308645AHMEDABADMUMCL063511AHMEDABAD MEDICAL CORPORATIONRAJ MEDICAL AND PRO STOREST/110681-Mar-2018 PRAVIN15-03-2018amcmanil@yahoo.comahm@cipla.com
1638-Mar-181043308645AHMEDABADMUMCL063512AHMEDABAD MEDICAL CORPORATIONRAJ MEDICAL AND PRO STOREST/110421-Mar-2018 PRAVIN15-03-2018amcmanil@yahoo.comahm@cipla.com
1648-Mar-181043308645AHMEDABADMUMCL063513AHMEDABAD MEDICAL CORPORATIONRAJ MEDICAL AND PRO STOREST/110671-Mar-2018 PRAVIN15-03-2018amcmanil@yahoo.comahm@cipla.com

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup>

Thanks in advance.

Vaibhav

hi experts, can anyone help me for this query.....need help plsss.
 
Upvote 0

Forum statistics

Threads
1,214,918
Messages
6,122,255
Members
449,075
Latest member
staticfluids

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