A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Auto Add name at Salutation from the sender



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 30th 07, 04:42 AM posted to microsoft.public.outlook.program_vba
Stephensaw
external usenet poster
 
Posts: 1
Default Auto Add name at Salutation from the sender

Hi,

I had touched with simple macros using macros recorder, but I cannot do the
following task with the recorder.

When I click on the "Reply" button to compose a reply email, I want my
Outlook to automatically add the recipient full name to the salutation line.
How could I do that?

Thanks.
Ads
  #2  
Old July 30th 07, 07:44 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Auto Add name at Salutation from the sender



You need a variable declared WithEvents in the module head to receive the
commandbar button click. You get that reference via
Application.ActiveExplorer.Commandbars.FindControl (,354).

In the button click event procedure, if you hit the button from the opened
item then set a MailItem variable to Application.ActiveInspector.CurrentItem
else to Application.ActiveExplorer.Selection(1).

That MailItem has a SenderEMailAddress property. Search that address within
your Contacts folder to get its FirstName, LastName and Title.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
Organize eMails:
http://www.vboffice.net/product.html?id=2006063&cmd=detail&lang=en&pub=6

Am Sun, 29 Jul 2007 19:42:04 -0700 schrieb Stephensaw:

Hi,

I had touched with simple macros using macros recorder, but I cannot do

the
following task with the recorder.

When I click on the "Reply" button to compose a reply email, I want my
Outlook to automatically add the recipient full name to the salutation

line.
How could I do that?

Thanks.

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Letter Wizzards doubles salutation [email protected] Outlook - Using Contacts 0 May 24th 07 10:17 AM
Auto-Accept Meeting Based on Sender [email protected] Outlook - Calandaring 1 January 6th 07 03:28 AM
How can I find the original sender from auto-forwarded messages? Honey Outlook Express 4 August 24th 06 05:01 PM
salutation Bernard katshu Outlook Express 1 July 28th 06 04:32 PM
script/macro to send auto reply to sender ah Outlook and VBA 6 June 22nd 06 05:21 PM


All times are GMT +1. The time now is 09:19 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.