![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#6
|
|||
|
|||
![]()
Well, you didn't mention what types of items were being flagged or in what
folder or folders, but this would work for mail items in the Inbox. This code would be in ThisOutlookSession: Dim WithEvents colItems As Outlook.Items Dim oFolder As Outlook.MAPIFolder Private Sub Application_Startup() Dim oNS As Outlook.NameSpace Set oNS = Application.GetNameSpace("MAPI") Set oFolder = oNS.GetDefaultFolder(olFolderInbox) Set colItems = oFolder.Items End Sub Private Sub colItems_ItemChange(Item As Object) If Item.FlagStatus = OlFlagStatus.olFlagMarked Then ' show MsgBox here or whatever End If End Sub -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm wrote in message ... snip I just don't get how to activate that event. for example i want to show a message box once a mail is flagged. can you show me how? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving Flag Status flag in Outlook 2007 | Gary C. | Outlook - Installation | 1 | June 19th 07 11:13 PM |
Search of an event fired immediate before Quit-event | Peter Ostermann | Outlook and VBA | 4 | April 6th 07 07:46 AM |
PropertyChange event can not detect changes in Body? | jiun | Outlook and VBA | 1 | December 23rd 06 09:12 AM |
Problem with CommandBarComboBox Change Event (Event fires only once) | M. Khalid Farooq | Add-ins for Outlook | 1 | October 19th 06 02:34 PM |
Outlook should have an out off office flag link to calender event | Mathieu | Outlook - Calandaring | 2 | July 25th 06 11:11 PM |