More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

forum 24-May-2018 19:46

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

    Page [ 1 ]  
 Basic Outlook Printer Friendly Version
Working with Outlook items, folders, recipients; dealing with security; writing event handlers
get the date of the top email
i would like to get the date of the top email (after sorting)...when i use (below) i get an error:

   Set oMails = objFolderpublicInbox.Items
      oMails.Sort "[receivedtime]", True 'i believe this is working
      mytempit = oMails.oMailItem.ReceivedTime 'error Object doesn't support this property"

?i can use the sort and grab the top one. do i have to?

thank you.


  10-May-2013  16:26
  10-May-2013  17:12   
got it...!

oMails.GetFirst.ReceivedTime (after the sorting...)

    Page [ 1 ]