Set objSourceFolder = objNamespace.GetDefaultFolder(olFolderInbox)įor intCount = To 1 Step -1 Set objNamespace = objOutlook.GetNamespace("MAPI") As written it checks the default Inbox but it can check in any folder, including a shared mailbox's Inbox.ĭim objSourceFolder As Outlook.MAPIFolderĭim propertyAccessor As Outlook.propertyAccessor To change the folder the macro checks, see Working with VBA and non-default Outlook Folders. This macro runs only when you run it, but you could use the method described at Send an email when an Appointment reminder fires to trigger it using a reminder. For example, “report pdf from Ann last month.More propertyaccessors for email can be found at Read MAPI properties not exposed in Outlook's Object Model You can combine different words and search operators to find any needed emails faster.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |