OUTLOOK compare date sender

User avatar
sal21
PlatinumLounger
Posts: 4362
Joined: 26 Apr 2010, 17:36

OUTLOOK compare date sender

Post by sal21 »

I recive at every day 2 email from dddd@hnj.com.
The object and attached file are the same into the 2 email.
The only distinguish parameter in this case is the time sender.
I need to comparare the date and time from the 2 email and delete the oldest email.
Possible via code VBA for excel?

example:
14/01/2011 19.03
and
14/01/2011 05.2

delete the email with date 14/01/2011 19.03

User avatar
HansV
Administrator
Posts: 78545
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: OUTLOOK compare date sender

Post by HansV »

Why do you want to do this from Excel?
And if you receive 2 emails per day, deleting the older one by hand isn't much work...
Best wishes,
Hans