|
outlook
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Application_ItemSend not workingApparently 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 <bier***@gmail.com> wrote in message
Show quote news:1160724729.410350.281210@i42g2000cwa.googlegroups.com... It is possible the code you put the breakpoint on was inside a conditional > 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 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 bier***@gmail.com <bier***@gmail.com> wrote:
> I am supposed to put some of the code in the Application_ItemSend Outlook code questions should be asked in one of the programming groups, > 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. like news://msnews.microsoft.com/microsoft.public.outlook.program_vba -- Brian Tillman Did you check VBA security and other basics? See http://www.outlookcode.com/d/vbabasics.htm
-- Show quoteSue 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 <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 > 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. -- Show quoteKen 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 > 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 > >
Other interesting topics
|
|||||||||||||||||||||||