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

set the initial folder in PickFolder



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 22nd 10, 11:35 AM posted to microsoft.public.outlook.program_addins
sd[_2_]
external usenet poster
 
Posts: 69
Default set the initial folder in PickFolder

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  
Old February 23rd 10, 05:41 PM posted to microsoft.public.outlook.program_addins
Dmitry Streblechenko
external usenet poster
 
Posts: 2,116
Default set the initial folder in PickFolder

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
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 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


All times are GMT +1. The time now is 11:45 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.