Hello, I have a quick question. How can i check an item's properties within an event procedure? Here is a snippet of what I'm trying to do:
I can't check the UnRead property. Please help.Code:Private Sub application_ItemLoad(ByVal Item As Object)
Dim myolitem As Object
Set myolitem = Item
If myolitem.Class = olMail Then
If myolitem.UnRead Then
UserForm2.Show vbModal
End If
End If
End Sub