A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

DateCompleted



 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5  
Old November 2nd 07, 09:29 PM posted to microsoft.public.outlook.program_vba
Volker Schreiner
external usenet poster
 
Posts: 3
Default DateCompleted

Hallo Dmitry

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

Have a nice weekend,

Volker

"Dmitry Streblechenko" schrieb im Newsbeitrag
...
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

"Volker Schreiner" wrote in message
...
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


"Dmitry Streblechenko" schrieb im Newsbeitrag
...
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

"Volker Schreiner" wrote in message
...
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











 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:43 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.