Outlook VBA - Extract email address

GDunn

Board Regular
Joined
Mar 24, 2009
Messages
51
Can anyone help with some Outlook VBA?

I am looking to extract the email address within the body of a delivery failure notification email.

Therefore extract all text strings with @ included, to a .txt file.
From a specific Outlook folder.

Thanks in advance
 
Last edited:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Have a look at my post #2 at:
http://www.mrexcel.com/forum/showthread.php?t=345240

You may be able to adapt this for your needs.
The code, as given, is run from Excel and will prompt for the Outlook folder to be searched. It then copies the body of each email to a text file and then searches that for required information - it is the "InStr(1, strText, strDelimiter)" that you will need to change to find the information that you need.
 
Upvote 0

Forum statistics

Threads
1,225,606
Messages
6,185,957
Members
453,333
Latest member
BioCoder84

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