Forum Discussion
S0Fr33
Aug 14, 2020Copper Contributor
"Search Folder" Is not including emails in the Inbox
It is only including emails I've filed in sub folders although I've selected Inbox:
S0Fr33 What sort order are you using on the search folder? If you remove the check mark from subfolders, does it find messages in the Inbox?
- S0Fr33Copper Contributor
Diane_Poremsky_MVP I am sorting by date received. If I remove the check for sub folders, it does find messages from the inbox. But of course, then doesn't find messages in the sub folders.
S0Fr33 if you sort by folder are there any from the inbox?
- melvinanorman99Copper Contributor
Hi, I think You need to use the Application.AdvancedSearch method which performs a search based on a specified DAV Searching and Locating (DASL) search string. The method and related features in the Outlook object model do not create a Search Folder that will appear in the Outlook user interface. However, you can use the Save method of the Search object that is returned to create a Search Folder that will appear in the Search Folders list in the Outlook user interface.
- S0Fr33Copper Contributor
melvinanorman99 , thanks for the input but - Wow! That is very complicated. I don't have the patience to work that out, it seems like my screenshot should work based on the instructions.