Toxter

Hello everyone,

I'm developing Outlook addin. I need to empty Selection object

(which I obtained from activeExplorer) and put my Item to it (so selection will

now contain only my item).

What I really need is to mark an email as selected (just like when user click on

it with mouse).

Thanks.



Re: Visual Studio Tools for Office Outlook addin - Selection problem

Sue Mosher - Outlook MVP

Outlook provides no method for doing that, neither for clearing a selection nor for adding an item to a selection. The Selection always contains those items the user has selected manually in the UI.



Re: Visual Studio Tools for Office Outlook addin - Selection problem

Toxter

Is there any workaround for this
I really need to set selection to only few emails.

Thanks.




Re: Visual Studio Tools for Office Outlook addin - Selection problem

Sue Mosher - Outlook MVP

Please see my previous answer.



Re: Visual Studio Tools for Office Outlook addin - Selection problem

Toxter

Maybe you didn¡¯t read carefully my previous post.

I wrote, asking, if there was a workaround for this.

If I may quote from http://en.wikipedia.org/wiki/Workaround

¡°Frequently workarounds are as creative as true solutions, involving outside the box thinking in their creation.¡±

Excuse me if I was rude.

Anyway, in my previous post I didn't ask you explicitly, but instead all forum readers.

Thank you.




Re: Visual Studio Tools for Office Outlook addin - Selection problem

Sue Mosher - Outlook MVP

The answer is still the same: There's no way to do this. There are quite a few things that we know simply cannot be done programmatically in Outlook. This is one of them.