Excuse me, but what makes you believe that I'm not showing the code I'm really using...?
Outlook 2007:
ThisOutlookSession:
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim strSubject As String
Dim myForm As New EmailPrioForm
strSubject = Item.Subject
If Len(Trim(strSubject)) = 0 Then
prompt$ = "Subject is Empty. Are you sure you want to send the Mail?"
If MsgBox(prompt$, vbYesNo + vbQuestion + vbMsgBoxSetForeground, "Check for Subject") = vbNo Then
Cancel = True
End If
End If
If (Left(strSubject, 3) <> "P1-" And Left(strSubject, 3) <> "P2-" And Left(strSubject, 2) <> "P3-" And Cancel <> True) Then
myForm.Show 1
End If
End Sub
EmailPrioForm:
Private Sub CommandButton1_Click()
Dim Item As MailItem
Set Item = Outlook.Application.ActiveInspector.CurrentItem
Item.Subject = "P1-" + Item.Subject
Unload Me
End Sub
' Subject Identifier: Action
Private Sub CommandButton2_Click()
Dim Item As MailItem
Set Item = Outlook.Application.ActiveInspector.CurrentItem
Item.Subject = "P2-" + Item.Subject
Unload Me
End Sub
' Subject Identifier: Decision
Private Sub CommandButton3_Click()
Dim Item As MailItem
Set Item = Outlook.Application.ActiveInspector.CurrentItem
Item.Subject = "P3-" + Item.Subject
Unload Me
End Sub