| | Awarded by Microsoft since 2005: |  |
| | VBOffice Info | | Visitors | 1390680 | | Impressions | 5095119 |
| |
|
| |
| Author: Michael Bauer | Homepage | | Date: 15.03.2007 | Accessed: 17006 | | | | Description
We are very sorry! This description is not translated yet. Anyway, please try the code as it is self-explanatory. |
Private WithEvents m_Explorer As Outlook.Explorer
Private WithEvents m_Mail As Outlook.MailItem
Private m_IgnoreEvent As Boolean
Private Sub Application_Startup()
Set m_Explorer = Application.ActiveExplorer
End Sub
Private Sub m_Explorer_SelectionChange()
Dim obj As Object
Dim Sel As Outlook.Selection
Set m_Mail = Nothing
Set Sel = m_Explorer.Selection
If Sel.Count Then
Set obj = Sel(1)
If TypeOf obj Is Outlook.MailItem Then
Set m_Mail = obj
End If
End If
End Sub
Private Sub m_Mail_PropertyChange(ByVal Name As String)
On Error Resume Next
If m_IgnoreEvent = False Then
If Name = "FlagStatus" Then
If m_Mail.FlagStatus = olFlagComplete Then
m_IgnoreEvent = True
m_Mail.FlagStatus = olNoFlag
m_Mail.Save
m_IgnoreEvent = False
End If
End If
End If
End Sub
|
| | |
| | |  | ReplyAll alerts you before unintentionally replying all, or if you are a confidential BCC recipient of the ... [more] |
| | |  | Access the master category list in the blink of an eye, share your categories in a network, get a reminder service, and ... [more] |
| | |  | SAM automatically sets the sender, signature, and folder for sent items, for instance based on the recipient ... [more] |
| | |  | OLKeeper reliably prevents users from closing their Outlook window and thus possibly missing reminders or ... [more] |
| |
|