Cancel Send event of an appointment item causes error to be displayed

G

GR

Hi,

I have an AddIn written in VB that runs in Outlook 2007. I capture the
Send event of an Appointment item and test a local condition. If that
condition is True, I then want to cancel the Send event. I set the
Cancel parameter = True and exit.

This does seem to stop the Send from happening, however I get an error
message ( a yellow box popup over the Outlook icon in the system tray)
that says:
"Could not complete the operation. One or more parameter values are
invalid."


If I comment out the line: "Cancel = True" and do not stop the send, I
don't get the error message.

Any ideas on why this is happening or better yet on how to stop it
from happening?

Thanks!

Here is the code:

Private Sub oAppointmentItem_Send(Cancel As Boolean)
If strVar1 = "Do Not Send" Then
Cancel = True
End If
End Sub
 
D

DT

Hi!

I have exactly the same problem trying to get my VB6 COM Addin to work for
O2K7.

Have you or anyone else found a solution to this yet??

Cheers,

Dave
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top