Results 1 to 3 of 3
  1. #1
    4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Mailbox on server (XP)

    Hi, just a quickie. In VBA if you cycle through the folders of outlook, is there way of checking for the Mailbox on the Server folder, as opposed to the Personal Folders?

    At the moment I'm doing this:

    <pre>Sub temp()
    Dim f As MAPIFolder
    For Each f In Outlook.GetNamespace("MAPI").Folders
    If InStr(1, f.Name, "Mailbox") > 0 Then Exit For
    Next
    MsgBox "Mailbox on server is " & f.Name
    Set f = Nothing
    End Sub</pre>


    Just wondered if anyone knows of a property check instead? I need to identify the mailbox on the server ONLY.
    Thanks,

    pmatz

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Mailbox on server (XP)

    I don't think this is exposed directly in the Outlook object model. Perhaps it is possible to determine the status using CDO (Collaboration Data Objects), but I don't know enough about that. There is a lot of info on CDO at CDOLive.

  3. #3
    4 Star Lounger
    Join Date
    Aug 2003
    Location
    Stroud, United Kingdom
    Posts
    548
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Mailbox on server (XP)

    Cheers Hans, I'm not sure i want to get too deep on this, and i think the Mailbox prefix is uniform on our site, so may just use this. Will have a look at CDO though.
    Thanks,

    pmatz

Posting Permissions

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