Application_ItemSend not working

B

bierlyt

Apparently there is no built-in functionality to Outlook 2002 to
automatically add contacts that you either send or reply to. However,
I found some code that uses Redemption library to add a new contact
whenever you send to an email not in your contact list.

I am supposed to put some of the code in the Application_ItemSend event
for ThisOutlookSession. I hit Alt-F11 to open the Visual Basic editor,
and chose Application from the first drop down, and ItemSend from the
second drop-down and it created the stub sub.

I added the code in and tried sending an email. Nothing happened. I
tried putting a breakpoint in the Application_ItemSend event, and it
never gets hit.

Why woud the ItemSend event not get triggered when I send an email??

Thanks,
Toby
 
J

John Blessing

Apparently there is no built-in functionality to Outlook 2002 to
automatically add contacts that you either send or reply to. However,
I found some code that uses Redemption library to add a new contact
whenever you send to an email not in your contact list.

I am supposed to put some of the code in the Application_ItemSend event
for ThisOutlookSession. I hit Alt-F11 to open the Visual Basic editor,
and chose Application from the first drop down, and ItemSend from the
second drop-down and it created the stub sub.

I added the code in and tried sending an email. Nothing happened. I
tried putting a breakpoint in the Application_ItemSend event, and it
never gets hit.

Why woud the ItemSend event not get triggered when I send an email??

Thanks,
Toby

It is possible the code you put the breakpoint on was inside a conditional
statement that was never True. Without seeing the code, it is hard to judge.

Try putting a simple msgbox statement as the first line of the item_send
event

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.room-booking-software.com - Schedule rooms & equipment bookings
for your meeting/class over the web.
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook, find/replace,
send newsletters
 
B

Brian Tillman

I am supposed to put some of the code in the Application_ItemSend
event for ThisOutlookSession. I hit Alt-F11 to open the Visual Basic
editor, and chose Application from the first drop down, and ItemSend
from the second drop-down and it created the stub sub.

Outlook code questions should be asked in one of the programming groups,
like news://msnews.microsoft.com/microsoft.public.outlook.program_vba
 
K

Ken Slovak - [MVP - Outlook]

What are your macro permissions set to? If they are Medium you should be
prompted for permission to run macros when Outlook starts. If High you'd
need to sign the macro code project to get things to run.
 
B

bierlyt

Thank you all for the response. Ken takes home the prize. It was the
macro security level. It was set to high, which disables macros
without prompting. I set it to medium, then restarted Outlook, and
said Enable Macros at the prompt. ItemSend code runs now when a
message is sent.

Thanks,
Toby
 

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