![]() |
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'm using redemption to display "Select Folder" dialog as I need to set the initial folder to exchange folder "\\Public Folders\All Public Folders\Demo".I'm using below code Dim Session As Object = CreateObject("Redemption.RDOSession") Session.MAPIOBJECT = Globals.ThisAddIn.Application.Session.MAPIOBJECT Dim RootFolder As Redemption.RDOFolder = Session.GetDefaultFolder(18) Dim Folder As Object = Session.pickfolder(SelectedFolder:=RootFolder.Fold ers("Demo")) This code works, sets the initial folder to "Demo" however below doesn't work (sets initial folder to "Inbox" )- 1.Session.pickfolder(SelectedFolder:=Session.GetDe faultFolder(18).Folders("Demo")) 2.Session.pickfolder(SelectedFolder:=Session.Getfo lderfrompath("\ \Public Folders\All Public Folders\Demo")) 3.Dim RootFolder As Object = Session.GetDefaultFolder(18) Dim Folder As Object = Session.pickfolder(SelectedFolder:=RootFolder.Fold ers("Demo")) GetDefaultFolder,Getfolderfrompath,GetFolderFromID all return RDOFolder still doesn't seem to work with Session.pickfolder.Why so? does this means that I 've to use early binding while declaring RootFolder. Thanks |
Ads |
#2
|
|||
|
|||
![]()
So it does no work if you name the parameter? Since SelectedFolder is the
first parameter, why not simply omit the parameter name? -- Dmitry Streblechenko (MVP) http://www.dimastr.com/ OutlookSpy - Outlook, CDO and MAPI Developer Tool - "sd" wrote in message ... hello I'm using redemption to display "Select Folder" dialog as I need to set the initial folder to exchange folder "\\Public Folders\All Public Folders\Demo".I'm using below code Dim Session As Object = CreateObject("Redemption.RDOSession") Session.MAPIOBJECT = Globals.ThisAddIn.Application.Session.MAPIOBJECT Dim RootFolder As Redemption.RDOFolder = Session.GetDefaultFolder(18) Dim Folder As Object = Session.pickfolder(SelectedFolder:=RootFolder.Fold ers("Demo")) This code works, sets the initial folder to "Demo" however below doesn't work (sets initial folder to "Inbox" )- 1.Session.pickfolder(SelectedFolder:=Session.GetDe faultFolder(18).Folders("Demo")) 2.Session.pickfolder(SelectedFolder:=Session.Getfo lderfrompath("\ \Public Folders\All Public Folders\Demo")) 3.Dim RootFolder As Object = Session.GetDefaultFolder(18) Dim Folder As Object = Session.pickfolder(SelectedFolder:=RootFolder.Fold ers("Demo")) GetDefaultFolder,Getfolderfrompath,GetFolderFromID all return RDOFolder still doesn't seem to work with Session.pickfolder.Why so? does this means that I 've to use early binding while declaring RootFolder. Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Outlook hnags after initial launch. Name and Initial dialog box di | Francis | Outlook - Installation | 8 | June 4th 08 08:39 PM |
changing the title of the pickfolder dialog | Southern at Heart | Outlook and VBA | 2 | February 13th 08 01:34 PM |
Pickfolder dialog box in Outlook event | Irene | Outlook and VBA | 1 | May 2nd 07 02:54 PM |
Changing the "Select Contacts" initial folder | microtom | Outlook - Using Forms | 1 | April 18th 07 04:04 PM |
Get Public Folder Name - Automate PickFolder function | FondaUK | Outlook - Using Forms | 5 | December 7th 06 05:30 PM |