Tony M
Tony M

Reputation: 1

VBSCRIPT Outlook how to select items from within a search result window

Dim selItems As Selection ' A collection of Outlook item objects in a folder Set selItems = ActiveExplorer.Selection

This code will not work if I select one or more items from within a search results window. For example I am in outlook viewing my emails. I filter by from: or To: or some date or keyword or file type and then when I select or highlight one or more email items the code above does not detect the items.

Upvotes: 0

Views: 393

Answers (1)

Eugene Astafiev
Eugene Astafiev

Reputation: 49455

I have just checked this out in my Outlook 2013. The Selection property of the Explorer class returns the correct results all the time (even in case of search folders).

Upvotes: 0

Related Questions