Read subject of emails and extract email adress in body

dcharland

New Member
Joined
Mar 2, 2011
Messages
40
Hello,

I would need some help with the following:

I've written a macros that automatically sends emails via outlook, it works great but I didn't think that I would be getting so much "Delivery Status Notification (Failure)"!!! :eek:

Therefore, i'm looking if there is someone that can help provide or guide me in the right direction for some vba code that would do the following:


  1. Look in outlook Inbox for email with the "Delivery Status Notification (Failure)" in the email subject line
  2. If true, then extract email address in the email body
  3. then, look in spreadsheet (column "D") for the same email address
  4. when found Write "failed" in (column "J")
These are the basics, there are of course other possibilities (e.i. I've requested a read receipt) so if the email title is "Read:[email title]" then I would write "read" instead of "failed", but I think I can modify the code for those other possibilities.

Thanks in advance...my inbox is FULL (over 200) of those email I would love to get these cleaned up automatically.

Denis
 

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,217,756
Messages
6,138,425
Members
450,136
Latest member
Tabako1960

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