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.
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.