Results 1 to 3 of 3
  1. #1
    Lounger
    Join Date
    Jan 2001
    Location
    Minneapolis, MN
    Posts
    38
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Search Public Folders (Outlook 2000, Exchange Server 5.5)

    Anyone know of a way - possibly a third-party utility? - to do a search through a Public Folder TREE? We have a folder with 10-15 sub-folders - occasionally, someone is looking for something in the tree, but doesn't have the information to tell which sub-folder it would be in. So, they have to search in each individual folder until they find it.

  2. #2
    mporter
    Guest

    Re: Search Public Folders (Outlook 2000, Exchange Server 5.5)

    There are probably utilities out there to do this already but a simple piece of VB to change the active folder and search it would do presumably.
    Something like:
    Set oNS = Outlook.Application.GetNamespace("MAPI")
    [Insert folder names in here]
    Set myFolder = oNS.Folders("Public Folders").Folders("All Public Folders").Folders("Change Log")
    Set ThisOutlookSession.ActiveExplorer.CurrentFolder = myFolder
    will change the active folder.
    Unfortunately you cannot use the Restrict / Find methods to search for a profile in a string so the best thing to do is probably extract the Subject and / or body to variables and use instr to see if the profile is in there then display the message.

    Set myItems = myFolder.Items
    'Loop through Items
    For Each myItem In myItems
    MyString1 = myItem.Subject
    MyStatus1 = InStr(1, MyString1, MySubject, vbTextCompare)
    If (MyStatus1 > 0) Then
    myItem.display
    End if
    Next

    The code above will not work on its own as I've just hacked bits out of the utility I'm try to write but the code around is easy too.

    hope it helps

    Mike

  3. #3
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Roanoke area, Virginia, USA
    Posts
    3,729
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Search Public Folders (Outlook 2000, Exchange Server 5.5)

    what os is the server on? if 2000, look into indexing - but i think it requires ex2000.

    otherwise, i'm not aware of any utilities.

Posting Permissions

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