Results 1 to 3 of 3

Thread: Open Outlook Folder by Path [Resolved]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Sep 2000
    Location
    Over There
    Posts
    522

    Open Outlook Folder by Path [Resolved]

    how can I open an outlook folder directly from its path.

    I need to open a folder that way down in the hiearchy.
    when I try the code below, it says it can't find it.

    VB Code:
    1. Private Sub CreateFolder()
    2. Dim olfolders As Outlook.Folders
    3. Dim fldr As MAPIFolder
    4. Dim olapp As New Outlook.Application
    5. Dim i As Long
    6.  
    7. Set olfolders = olapp.GetNamespace("MAPI").Folders
    8. Set fldr = olfolders.Item("Public folders\All Public Folders\Shared private Folders\Outlook Resource Calendars\Equipment\Mass Spectrometers")
    9. Debug.Print fldr.Name

    End Sub
    Last edited by Dalceon; Jul 29th, 2003 at 09:26 AM.
    It Never Fails. Everytime I try to make a program idiot proof, the world makes a better idiot.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width