C
ck
I am trying to tap in to the send event of the current mail item.
What am I doing wrong. I want a msgbox to pop up and confirm that I
would like to send the email. When I click send. Nothing happens.
Where am I going wrong? TIA ck
Dim ol As Outlook.Application
Set ol = New Outlook.Application
Sub objmail_Send(Cancel As Boolean)
Dim objmail As Outlook.MailItem
Set objmail = ol.ActiveInspector.CurrentItem
Dim i As Integer
i = MsgBox("Are you sure you want to send that message?", vbYesNo
+ vbQuestion, "Are you sure?")
If i = vbYes Then
Cancel = False
Else
Cancel = True
End If
End Sub
What am I doing wrong. I want a msgbox to pop up and confirm that I
would like to send the email. When I click send. Nothing happens.
Where am I going wrong? TIA ck
Dim ol As Outlook.Application
Set ol = New Outlook.Application
Sub objmail_Send(Cancel As Boolean)
Dim objmail As Outlook.MailItem
Set objmail = ol.ActiveInspector.CurrentItem
Dim i As Integer
i = MsgBox("Are you sure you want to send that message?", vbYesNo
+ vbQuestion, "Are you sure?")
If i = vbYes Then
Cancel = False
Else
Cancel = True
End If
End Sub