Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Default Folder for Pickfolder

Status
Not open for further replies.

jtmach

Programmer
Jul 26, 2001
88
0
0
US
I am using PickFolder to allow users to browse the Outlook folders and pick one. I would like to be able to set a default folder that the browse starts in. Any suggestions or alternatives to this method would be greatly appreciated.
Here is the code that I have so far.


Code:
    Dim olApp As Outlook.Application
    Dim olFolder As Outlook.MAPIFolder
    
    Set olApp = CreateObject("Outlook.Application")
    Set olFolder = olApp.GetNamespace("MAPI").PickFolder
    
    If (olFolder Is Nothing) Then
        Set olFolder = Nothing
        Set olApp = Nothing
        Exit Sub
    End If
    
    Set olFolder = Nothing
    Set olApp = Nothing
The hardest questions always have the easiest answers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top