DateCompleted

  • Thread starter Thread starter Volker Schreiner
  • Start date Start date
V

Volker Schreiner

Hello NG,

I'm looking for a way in VBA to read the DATECOMPLETED of a MAILITEM. It is
shown in the top-lines of the Explorers Preview, but I didn't found a
property.
I'm using Outlook 2003 / WIN XP

Greetings, Volker
 
You need to read the PR_FLAG_COMPLETE_TIME MAPI property (0x10910040) using
Extended MAPI (C++ or Delphi), CDO 1.21 or Redemption.
In Outlook 2007, you can also read that property using
MailItem.PropertyAccessor.

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Hallo Dmitry,

thank you for your help. I did load your REDEMPTION and linked it to my
Outlook-Project.
I looked on your site for a little help, but I did'nt found some. Could you
give me some sample-code?

Volker
 
Assuming MailItem variable points to an Outlook item that you already have
in your code, something like the following should do the trick:

PR_FLAG_COMPLETE_TIME = &H10910040
set sItem = CreateObject("Redemption.SafeMailItem")
sItem.Item = MailItem
MsgBox sItem.Fields(PR_FLAG_COMPLETE_TIME)

Keep in mind that all MAPI date/time properties are in UTC, You can convert
them to the local time zone using MAPIUtils.HrGMTToLocal

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
 
Hallo Dmitry

thank you very much, it works great.
Also the tip to MAPI date/time saved hours!

Have a nice weekend,

Volker
 
Back
Top