Diane Poremsky
Senior Member
- OS Version(s)
- MacOS
- Windows
- iOS
- Android
- Outlook version
- Outlook 2016 32 bit
- Email Account
- Office 365 Exchange
Correct. Although it can be changed to watch any folder - but only one as written.if this is of any consequence, action would only be performed on elements in default inbox - no other containers.
Perhaps that could be on someone else's wishlist
Set OlItems = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Items
Michael explained how to use it with multiple folders. if you only needed to watch a handful of folders, you could do it with this macro - just reference more objects (set moreItems = a different folder) and add a itemchange macro for each folder (Sub moreItems_ItemChange... ) You can call a main macro that holds the code that creates the task rather than repeating it in each itemchange.)
Usually when a macro gets more complicated it is better as a com addin though.