![]() |
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Tags: application_itemsend, working |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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 |
| Ads |
|
#2
|
|||
|
|||
|
wrote in message oups.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 |
|
#4
|
|||
|
|||
|
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 wrote in message oups.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 |
|
#5
|
|||
|
|||
|
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 wrote in message oups.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 |
|
#6
|
|||
|
|||
|
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: 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 wrote in message oups.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 |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Application_ItemSend doesn't trigger after I save the vba project | Rick | Outlook and VBA | 7 | June 22nd 06 05:25 PM |
| Is this working now? | Oldfield-Cherry | Outlook Express | 1 | June 12th 06 08:37 PM |
| Appointment's Not Working | Joe Gabba | Outlook - Calandaring | 1 | May 31st 06 03:09 AM |
| Archive doesn't seem to be working | dwt | Outlook - Calandaring | 4 | April 21st 06 06:47 PM |
| Links not working right | Ernie Lane | Outlook Express | 7 | February 8th 06 01:38 PM |