A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

select all navigationfolders in a navigationgroup



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 27th 09, 02:52 PM posted to microsoft.public.outlook.program_addins
sd[_2_]
external usenet poster
 
Posts: 69
Default select all navigationfolders in a navigationgroup

hello

I need to select(check) all the navigationfolders in a
navigationgroup.I'm using below code -

For Each NavigationGrp In

CurrentExplorer.NavigationPane.Modules.GetNavigati onModule
(Outlook.OlNavigationModuleType.olModuleCalendar). NavigationGroups

If String.Compare(strLocation, NavigationGrp.Name, True) = 0
Then 'strLocation= user selected Navigation group
For Each fld As Outlook.NavigationFolder In
NavigationGrp.NavigationFolders
fld.Folder.Views.Item("Day/Week/Month").Apply()
fld.IsSelected = True
Next
blnFound = True
Exit For
End If
Next

Though for each folder IsSelected property is set true,only the last
navigationfolder in the NavigationFolders collection

gets selected.Debugging shows the prop set to true for all
NavigationFolders but in outlook only last navigationfolder

retains the selection.What am I missing?

It is VSTO add in for OL 2007
Thanks
Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlook Create Message, Select To, Select Conacts- ...No Sort Opti Hyny Outlook - Using Contacts 1 July 9th 09 08:04 PM
Select Mailbox BAC Outlook and VBA 3 January 28th 09 10:34 PM
select ALL option Ranjit kurian Outlook and VBA 2 September 22nd 08 06:24 PM
Select Recipients Ken Kast Outlook and VBA 3 October 27th 07 05:51 PM
Select item j Add-ins for Outlook 4 February 21st 07 07:49 PM


All times are GMT +1. The time now is 09:29 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.