Forum

Extract Email Addre...
 
Notifications
Clear all

Extract Email Address from Outlook messages

19 Posts
3 Users
0 Reactions
448 Views
(@marsil)
Posts: 72
Estimable Member
Topic starter
 

Hi Phil,

Thank you for your always support.

I checked the macro and it is ok, as I found the email address.

It just need to fix below point.

Please check attached, you will find in Column A, the Send Display name "Marsil Sarvis"  and In Column D, you will find the email address for sender as below

Marsil Sarvis <[email protected]>  and there is no data in E column.

So please can you handle this as below.

Column A, contain the email address for sender.

Column D, contain the email address for TO

Column E, contain the email address for CC.

Thanks is not enough, but really don't know what else say to you.

Thanks,

Marsil

 
Posted : 12/06/2020 5:29 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

No worries Marsil.

To get the email address for the sender change

Range("A1").Offset(i, 0).Value = Email.SenderName

to

Range("A1").Offset(i, 0).Value = Email.SenderEmailAddress

Col D should already contain the TO email address and Col E should be listing any CC email addresses.  When I test this at my end this is exactly what it is doing.

If it is not doing the same for you can you please provide a screenshot of the email showing the email(s) where it is not working.  Just the email addresses, you don't need to show the email content.

Regards

Phil

 
Posted : 13/06/2020 1:21 am
(@marsil)
Posts: 72
Estimable Member
Topic starter
 

It works perfectly, thanks Phil!

You are amazing! Thank you so much!

Thanks;

Marsil

 
Posted : 13/06/2020 10:14 am
Philip Treacy
(@philipt)
Posts: 1629
Member Admin
 

You're welcome 🙂

 
Posted : 13/06/2020 7:11 pm
Page 2 / 2
Share: