[OUTLOOK] Trying to run a sub on send
I created a sub procedure that will update the names of the recipients in the To line of an email so that it will be in the LastName, FirstName format if it doens't start that way.
I would like to know if there is a way to run this sub upon clicking of the send button or on a lostfocus event from the To line.
Any help would be greatly appreciated
I am using Outlook 2007.
Thanks,
Garrett
Re: [OUTLOOK] Trying to run a sub on send
I have posted an example here
http://www.vbforums.com/showthread.php?t=564300
on how to capture that :)
Re: [OUTLOOK] Trying to run a sub on send
I tried the sample that you had posted in the other thread and it worked fine, but when I used the code that I need with my criteria the Check Names dialog box is popping up before my code has a chance to run. I have even disabled the Auto Name Checking checkbox under options and the box still pops up.
Does anyone know away around this dialog box?
And Thank you to Koolsid for the post, that helped clear a few things up for me.
Garrett