• Subject: Re: Insert First Name in Reply
  • Author: Ken Slovak
  • Date: 28 Jul 2010
  • References: 1
It could be done, but only if the sender was in your contacts. You'd have to
handle Reply() and ReplyAll() events for any selected emails as well as any
open ones. Then you could pick up the recipient of the reply, assuming there
is only one, then you could get the address and try to match it to a
contact and if it matched you could get the contact first name.

If you are using Outlook 2007 or later you could use
Recipient.AddressEntry.GetContact(), which would save a lot of coding. If an
earlier version you'd need to find the contact yourself.

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm

"Brian B." <brianblanchett@gmail.com> wrote in message
news:2be978db-5048-42d6-a2bb-ceb2b5eb6e67@j19g2000vbh.googlegroups.com...
> Is there a way to automatically insert the first name of the sender
> when I "Reply" or "RepyToAll" to a mail message?
>
> Perference would be for it to automatically appear when I click the
> default 'Reply' or 'Reply To All' buttons (potentially via an
> ItemReply event?) but if necessary I could easily create a new button
> assigned to the macro.
>
> I have reviewed many posts (on this forum and others) but haven't seen
> a single full solution, with all necessary code (I am a relative
> newbie to Outlook VBA).
>
> Any help would be greatly appreciated.
>
> -Brian
27 Jul 2010Insert First Name in Reply.Brian B.
28 Jul 2010\ Re: Insert First Name in Reply.Ken Slovak
28 Jul 2010   \ Re: Insert First Name in Reply.Brian B.
29 Jul 2010      \ Re: Insert First Name in Reply.Ken Slovak
Contact Us
All times are in (US) Eastern Daylight Time (GMT -4:00)