Need fields in new email received

  • Thread starter Thread starter gord9b
  • Start date Start date
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
 
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.
 
Back
Top