Home All Groups Group Topic Archive Search About

Application_ItemSend not working

Author
13 Oct 2006 7:32 AM
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

Author
13 Oct 2006 7:54 AM
John Blessing
<bier***@gmail.com> wrote in message
Show quote
news:1160724729.410350.281210@i42g2000cwa.googlegroups.com...
> 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
Author
13 Oct 2006 1:18 PM
Brian Tillman
bier***@gmail.com <bier***@gmail.com> wrote:

> 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
--
Brian Tillman
Author
13 Oct 2006 1:26 PM
Sue Mosher [MVP-Outlook]
Did you check VBA security and other basics? See http://www.outlookcode.com/d/vbabasics.htm

--
Sue Mosher, Outlook MVP
   Author of Configuring Microsoft Outlook 2003
     http://www.turtleflock.com/olconfig/index.htm
   and Microsoft Outlook Programming - Jumpstart for
     Administrators, Power Users, and Developers
     http://www.outlookcode.com/jumpstart.aspx

Show quote
<bier***@gmail.com> wrote in message news:1160724729.410350.281210@i42g2000cwa.googlegroups.com...
> 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
>
Author
13 Oct 2006 1:26 PM
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.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


<bier***@gmail.com> wrote in message
Show quote
news:1160724729.410350.281210@i42g2000cwa.googlegroups.com...
> 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
>
Author
16 Oct 2006 11:54 PM
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

Ken Slovak - [MVP - Outlook] wrote:
Show quote
> 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.
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> <bier***@gmail.com> wrote in message
> news:1160724729.410350.281210@i42g2000cwa.googlegroups.com...
> > 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
> >

AddThis Social Bookmark Button