![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
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
|
|||
|
|||
![]() 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 |
Display Modes | |
|
|
![]() |
||||
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 |