Outlook Addin: ExplorerSelectionChange Event

Add-in Express™ Support Service
That's what is more important than anything else

Outlook Addin: ExplorerSelectionChange Event
Firing twice when selection changes 
David Wisniewski




Posts: 39
Joined: 2015-11-20
When I change the selected item, the ExplorerSelectionChange event is firing twice, and both times it is connecting to the same new mailitem that I have selected. Is this intentional? I don't want to execute my code twice each time a new item in the explorer is selected.
Posted 06 Dec, 2021 03:00:12 Top
Andrei Smolin


Add-in Express team


Posts: 18506
Joined: 2006-05-11
Hello David,

This is the way Outlook works. Click the selected message and you'll get one more SelectionChange. To not handle the same email twice, retrieve MailItem.EntryId and compare it with the previously processed one.

Regards from Poland (CET),

Andrei Smolin
Add-in Express Team Leader
Posted 06 Dec, 2021 09:51:22 Top