Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim objApp As Outlook.Application
Dim objNS As Outlook.Namespace
Dim objFolder As Outlook.MAPIFolder
Dim objItem As Outlook.MailItem
Set objApp = CreateObject("Outlook.Application")
Set objNS = objApp.GetNamespace("MAPI")
Set objFolder = objNS.GetDefaultFolder(olFolderInbox)
For Each objItem In objFolder.Items
With objItem
Debug.Print "Date sent: " & .SentOn
Debug.Print "Date received: " & .ReceivedTime
End With
Next
Set objItem = Nothing
Set objNS = Nothing
Set objApp = Nothing