A G
asked on
Outlook VBA to check if a new file is added to an outlook folder since last check?
How can I make outlook vba check if a new file is added to an outlook folder or not?
ASKER
Thanks,
I guess that's ok too. How would we achieve that? :)
I guess that's ok too. How would we achieve that? :)
The following in thisOutlookSession for example will trigger whenever something is added to the inbox.
Chris
Chris
Public WithEvents olkInbox As Outlook.items
Private Sub Application_Startup()
Set olkInbox = Session.GetDefaultFolder(olFolderCalendar).items
End Sub
Sub olkInbox_ItemAdd(ByVal Item As Object)
msgbox "Item Added:> " & item.subject
End Sub
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
cool thanks
Chris