View Single Post
  #4  
Old June 18th 07, 10:00 PM posted to microsoft.public.outlook.program_vba
BrianL
external usenet poster
 
Posts: 13
Default Using SenderEmailAddress

Okay, I have run into a problem. I have decided to use the SenderEmailAddress
from the newest email. The only problem is that no matter how I sort the
items in the inbox, it always grabs the SenderEmailAddress from oldest email
in my inbox.

I tried this code with both false and true and got the same result:

Set myFolder2 = myNameSpace.GetDefaultFolder(olFolderInbox)
myFolder2.Items.Sort "[ReceivedTime]", False

I'm sure that it is pointing to the right folder but I have no idea why it
wont sort it. Maybe I forgot a step?
Ads