WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Select/Unselect items in ActiveExplorer by code?

 
   Home -> Office -> Program Add-Ins RSS
Next:  conflict with taSK MANAGER  
Author Message
Heinz-Josef Bomanns

External


Since: Oct 13, 2009
Posts: 2



(Msg. 1) Posted: Tue Oct 13, 2009 1:05 am
Post subject: Select/Unselect items in ActiveExplorer by code?
Archived from groups: microsoft>public>outlook>program_addins (more info?)

Good morning,

is there any way to select or unselect items in ActiveExplorer by
code? For e.g. there are five mails selected by the user, i process
each mail in my add in through a loop like this:

for each Item in ActiveExplorer.Selection
'Do something with the mail
if SomeCondition = True then
Item.Selected = False 'Is something like this possible?
'or perhaps Item.Unselect?
end if
next Item

After the loop is done there should remain for e.g. two mails
selected. Second example:

for each Item in ActiveExplorer.CurrentFolder
if SomeCondition = True then
Item.Selected = True 'Select the mail
'or perhaps Item.Select?
end if
next Item

This should select mails in ActiveExplorer based on criterias checked
for each mail. Thanks for any hints or suggestions...


--

So long...
...Bomi

> !!! In case you want to reply via email please use Reply-To address and remove underscores (_) !!!
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 2977



(Msg. 2) Posted: Tue Oct 13, 2009 9:47 am
Post subject: Re: Select/Unselect items in ActiveExplorer by code? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

The ability to do that was added to the object model in Outlook 2010. In
earlier versions of Outlook there's no way to do that.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Heinz-Josef Bomanns" <NotForMail.DeleteThis@t-online.de> wrote in message
news:lqu7d59u6r1pr58m6ofif0lingp3v3k5d2@4ax.com...
> Good morning,
>
> is there any way to select or unselect items in ActiveExplorer by
> code? For e.g. there are five mails selected by the user, i process
> each mail in my add in through a loop like this:
>
> for each Item in ActiveExplorer.Selection
> 'Do something with the mail
> if SomeCondition = True then
> Item.Selected = False 'Is something like this possible?
> 'or perhaps Item.Unselect?
> end if
> next Item
>
> After the loop is done there should remain for e.g. two mails
> selected. Second example:
>
> for each Item in ActiveExplorer.CurrentFolder
> if SomeCondition = True then
> Item.Selected = True 'Select the mail
> 'or perhaps Item.Select?
> end if
> next Item
>
> This should select mails in ActiveExplorer based on criterias checked
> for each mail. Thanks for any hints or suggestions...
>
>
> --
>
> So long...
> ...Bomi
>
>> !!! In case you want to reply via email please use Reply-To address and
>> remove underscores (_) !!!
Back to top
Login to vote
Heinz-Josef Bomanns

External


Since: Oct 13, 2009
Posts: 2



(Msg. 3) Posted: Fri Oct 16, 2009 5:05 am
Post subject: Re: Select/Unselect items in ActiveExplorer by code? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Hallo Ken,

>The ability to do that was added to the object model in Outlook 2010. In
>earlier versions of Outlook there's no way to do that.

Thanks, was afraid of that Smile


--

So long...
...Bomi

> !!! In case you want to reply via email please use Reply-To address and remove underscores (_) !!!
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Program Add-Ins All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET |
  • IT Support