How to get the received date of an email

H

Hcoms

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
 
G

Guest

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.
 
H

Hcoms

Cheers!


Sue Mosher said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top