M
Martin Los
I have a macro counting the number of emails in Outlook
2002 depending on the day it arrived. However, if there is
a notification in the mailbox, the macro doesn´t work.
MACRO
**********************
Set objMAPIInboxFolder = objNameSpace.Folders
(MailBox).Folders("Inbox")
Set objMailItem = objApp.CreateItem(olMailItem)
For Each objMailItem In objMAPIInboxFolder.Items
If Format(objMailItem.ReceivedTime, "dd/mm/yyyy") = Format
(dateCalcDate, "dd/mm/yyyy") Then Counter = Counter + 1
Next objMailItem
.....
***************************
The problem is that a notification is not a objMailItem.
Any idea how to solve this problem?
2002 depending on the day it arrived. However, if there is
a notification in the mailbox, the macro doesn´t work.
MACRO
**********************
Set objMAPIInboxFolder = objNameSpace.Folders
(MailBox).Folders("Inbox")
Set objMailItem = objApp.CreateItem(olMailItem)
For Each objMailItem In objMAPIInboxFolder.Items
If Format(objMailItem.ReceivedTime, "dd/mm/yyyy") = Format
(dateCalcDate, "dd/mm/yyyy") Then Counter = Counter + 1
Next objMailItem
.....
***************************
The problem is that a notification is not a objMailItem.
Any idea how to solve this problem?