MAPIFolder.AddToPFFavorites is what you need.
Works in all versions of Outlook, at least starting with Outlook 2000.
--
Dmitry Streblechenko (MVP) http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
D'oh. I remember now getting tripped up by that before. Thanks. I think
you'll need Outlook 2007 to be able to do what you want programmatically.
That would only work if it's a public folder, though, and does it work for mail folders? There's no generic method for display just any folder under favorites.
Ah, sorry - I guess this really shows that I do not use Favorites (not PF
favorites) at all
--
Dmitry Streblechenko (MVP) http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool
-
That would only work if it's a public folder, though, and does it work for
mail folders? There's no generic method for display just any folder under
favorites.