Set olSentItems = objNS.GetDefaultFolder(olFolderSentMail).Items ' instantiate objects declared WithEvents It waits for a message to hit the Sent folder then asks if you want to flag it.īecause this is an Application_Startup macro, you need to click in Application_Startup code and click Run to test it. This macro will ask if you want to flag a message after sending it. If you use olMarkToday and set the due date for next week, it's converted to a 'next week' flag. MarkAsTask line, the flag will be the 'people flag'. FlagRequest = "Call " & objMsg.SenderName To use the macro, open or select a message and run the macro. Paste it in the module following this macro.įor more information on using VBA, see How to use the VBA Editor. You'll also need the GetCurrentItem function from Work with an open or selected Outlook item. Paste the macro into the module and edit as needed. Right click on Project1 and choose Insert > Module. ![]() ![]() To create the macro, open the VBA editor using Alt+F11.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |