![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
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 |