Announcement

Collapse
No announcement yet.

Adding folders to 'Favorite Folders' using VBA

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding folders to 'Favorite Folders' using VBA

    Hi all,

    I am attempting to find out if it is possible to add mail folders to the "Favorite Folders" pane in the navigation pane programmatically.

    I have searched in the VBA IDE object browser, through help documentation, and in a number of web forums (such as this one) without success.

    I see that MAPI folders have two methods, AddToPFFavorites and AddToFavorites, which add public folders to public folder favorites, and add and folder to IE favorites, respectively. However neither of these is what I am trying to achieve.

    This is the code I found for AddToPFFolders, and I would expect my solution to be something similar.
    Code:
    Sub AddToFavorites()
        'Adds a Public Folder to the list of favorites
        Dim olapp As Outlook.Application
        Dim objFolder As Outlook.MAPIFolder
        Set olapp = New Outlook.Application
        Set objFolder = olapp.Session.GetDefaultFolder(olFolderInbox).Folders.Item("Personal")
        objFolder.AddToPFFavorites
    End Sub
    Or, is it possible to get AddToPFFolders to work on my personal folders... somehow?

    Any comments, experiences, or wisdom is welcomed.

    Regards,

    Rick

  • #2
    Re: Adding folders to 'Favorite Folders' using VBA

    *bump*

    I'm still interested in this solution - does anyone have any ideas, or avenues I might explore?

    Comment

    Working...
    X