Hello i have this perfect code i found. It checks for new messages and it adds in a custom column ONLY the date and no time. It is perfect for Grouping by Received and then from.
But it works only in my default account, Can this works it multiple accounts?
Private Sub Application_Quit()
Set myInbox = Nothing
End Sub
Private Sub Application_Startup()
Set myInbox = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Items
End Sub
Private Sub myInbox_ItemAdd(ByVal Item As Object)
Item.UserProperties.Add "DateReceived", olDateTime
Item.UserProperties.Item("DateReceived") = DateValue(Item.ReceivedTime)
Item.Save
End Sub