Need fields in new email received

G

gord9b

I have a macro that notifies me of new emails in my inbox.
Currently, I displaly the sent time, sender and subject lines.
My problem is the time I display is the NOW time, not the actual tim
the email was sent. The example I copied from shows:
UserForm.Label2 = Now
When I change it to
UserForm.Label2 = myitem.Sent I get TRUE
How can I display the actual date and time the email was sent
 
S

Sue Mosher [MVP-Outlook]

When in doubt, check the object browser: Press ALt+F11 to open the VBA
environment in Outlook, then press F2. You'll find that the MailItem obect
has both ReceivedTime and SentOn properties.
 

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