I'm working now on Outlook macros to add selected folder to Outlook's favorites group. I've tried to use this method Sub AddToFavorites Dim olapp As Outlook.Application Dim objFolder As Outlook.MAPIFolder Set olapp = New Outlook.Application Set objFolder = olapp.ActiveExplorer.CurrentFolder objFolder.AddToPFFavorites End Sub But AddToPFFavorites method throws error 'The attempted operation failed. An object could not be found'. I've tried to add target folder to favorites using 'Show in Favorites' action from context menu, as result folder has been showed in Favorites group without errors. My question is: How to add folder to favorites group?
![Add favorites folder to outlook Add favorites folder to outlook](http://www.office.mvps.org/Images/smart_folder/create.gif)
In Outlook 2011 for Mac, select the Tools menu and then Accounts. In the window that appears, select your Exchange account and click the Advanced. Click the Delegate tab. In the section named 'People I am a delegate for:', click the Add button. The Select User window will appear.
What is VBA equivalent for 'Show in Favorites' action?
Maybe you want to know at a glance which of your emails contain PDF documents. Maybe you want to know which are overdue. Or maybe you just want a place to stuff promising ideas. Those are the kinds of problems smart folders exist to solve. Smart folders automatically sort emails into categories you can define (default smart folders include “flagged,” “overdue,” and “high priority”) and they’re a great productivity tool.
To create a smart folder in Outlook for Mac 2011, you’ll start with a search, and then create your folder. Open Outlook from the Apple dock.
Place your cursor in the “Search this Folder” text box (it’s located in the top-right hand corner). Select whether your search includes a folder, subfolder, All Mail, and/or All Items. Click Advanced. Choose your search criteria. For example, you can create a smart folder for all email containing PDF documents. By selecting Attachments Contains.pdf.
If you want to add additional search criteria, click the “+” symbol at the far right. Once complete, click Save and enter a name for your smart folder.
You can create additional smart folders based on any search criteria you like, such as email size or date sent.