PC Review


Reply
Thread Tools Rate Thread

How to get the received date of an email

 
 
Hcoms
Guest
Posts: n/a
 
      14th Jun 2004
Hello ,

How can you using vba get the received date and time of an email. I have
used CBO to get the email address of the sender but i can not figure out how
to get the date and time.

Cheers



 
Reply With Quote
 
 
 
 
=?Utf-8?B?U3VlIE1vc2hlciBbTVZQLU91dGxvb2td?=
Guest
Posts: n/a
 
      14th Jun 2004
When in doubt, check the object browser: Press ALt+F11 to open the VBA environment in Outlook, then press F2. Switch from <All Libraries> to Outlook to browse all Outlook objects and their properties, methods, and events. Select any object or member, then press F1 to see its Help topic.

You'll find that the Outlook MailItem object includes a ReceivedTime property. If you prefer to use CDO, you can use Message.TimeReceived.
--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx



"Hcoms" wrote:

> Hello ,
>
> How can you using vba get the received date and time of an email. I have
> used CBO to get the email address of the sender but i can not figure out how
> to get the date and time.
>
> Cheers
>
>
>
>

 
Reply With Quote
 
 
 
 
Hcoms
Guest
Posts: n/a
 
      14th Jun 2004
Cheers!


"Sue Mosher [MVP-Outlook]" <(E-Mail Removed)> wrote in message
news:8106BB42-B929-44F0-A326-(E-Mail Removed)...
> When in doubt, check the object browser: Press ALt+F11 to open the VBA

environment in Outlook, then press F2. Switch from <All Libraries> to
Outlook to browse all Outlook objects and their properties, methods, and
events. Select any object or member, then press F1 to see its Help topic.
>
> You'll find that the Outlook MailItem object includes a ReceivedTime

property. If you prefer to use CDO, you can use Message.TimeReceived.
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook Programming: Jumpstart
> for Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
>
> "Hcoms" wrote:
>
> > Hello ,
> >
> > How can you using vba get the received date and time of an email. I have
> > used CBO to get the email address of the sender but i can not figure out

how
> > to get the date and time.
> >
> > Cheers
> >
> >
> >
> >



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I get all received email messages to show once received? =?Utf-8?B?VGlncndvbW4=?= Microsoft Outlook Discussion 2 31st Jul 2007 06:44 AM
Calcualting the time between email received date and reply date =?Utf-8?B?U2hhbmtz?= Microsoft Outlook 3 22nd Feb 2007 04:11 AM
when creating csv how get received date on my email =?Utf-8?B?am9obl9yZW5ubw==?= Microsoft Outlook Discussion 0 7th Apr 2006 12:19 PM
the email received icon doesnt appear when an email is received =?Utf-8?B?Tmlzc2Fu?= Microsoft Outlook Discussion 2 15th Nov 2005 12:30 AM
Get Received date from a email Lasse Matsson Microsoft Outlook VBA Programming 1 22nd Sep 2005 12:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:16 PM.