OL2010 Button to Insert First Name

Status
Not open for further replies.

KoolPal

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Hi,

I had posted this earlier in the Using Outlook forum. I think I asked the question in the wrong forum.

Can anyone help me with a simple code to insert first name of recipient(s) from a macro button?

This button would be executed from a new mail / reply or reply to all window.
The recipient name would be entered before this macro is executed.

Some sample code on how to manage multiple recipients would be an added help! :)

I know how to create a button, I just need help with the code.

Thanks a ton!
 

Cathy Rhone

Senior Member
Outlook version
Outlook 2013 32 bit
Email Account
Exchange Server 2010
Do you just need an inputbox ? That would ask for you to type something.

strName = InputBox("Enter the name")

Then you'll use strName in the code where the name goes.
 

KoolPal

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Thanks for the reply catherized! I am looking for a code which picks the name from the recipients in the To in the email.
 

KoolPal

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
Dear Diane,

If you help with some beginner code to start this I would be obliged.

If it would help with some commented options to indicate which line would get me first name , which would get me all names, etc THAT would be awesome!

Thanks a lot!
 

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
I don't have any code handy that does this (AFAIK) - you won't be able to get just first names easily if you are getting them from the recipients on the message - you'll get whatever display name is used.
 

KoolPal

Member
Outlook version
Outlook 2010 32 bit
Email Account
Exchange Server
I don't have any code handy that does this (AFAIK) - you won't be able to get just first names easily if you are getting them from the recipients on the message - you'll get whatever display name is used.
Dear Diane,

Thanks for this help. Can you help with the code to get the display name for the recipients?
 
Status
Not open for further replies.
Thread starter Similar threads Forum Replies Date
K OL2010 Button to Insert First Name Using Outlook 1
T Outlook 2010 Advice on syncing OL2010 Calendar and Outlook app Using Outlook 0
T OL2010 Password box keeps appearing. Using Outlook 6
R OL2010 - Send to Mail Recipient going to wrong account Using Outlook 1
T From OL2010 Pro to OL2003 Pro Using Outlook 4
J Calendar search failing & wrong indexlocation showing..OL2010 Using Outlook 3
B How do I REALLY disable Outlook Junk E-mail sorting in OL2010 and/or 2013? Using Outlook 1
B OL2010 and install custom WYWO form Using Outlook 1
O Form cache size for OL2010 is set up to 0 Kbs, but sometimes ! Using Outlook 8
R New computer, OL2010 unable to display shared calendar appointments Exchange Server Administration 3
P OL2010 - custom form contact picture Using Outlook 0
B Updating Macro to OL2010/32bit Using Outlook 8
J OL2010 Create a new task while off line Exchange Server Administration 3
M How to skip weekends on recurring appointments - OL2010? Using Outlook 4
R OL2010 Calendar Appointment Highlighting Text issue Using Outlook 3
P migration issue from OL2003 to OL2010 with custom contact form Using Outlook 7
R OL2010; How to ALWAYS Reply/Forward using HTML? Using Outlook 1
B OL2010 - signatures while forwarding tasks or appointments Using Outlook 2
B right click outlook objects in OL2010 acts on current inbox mailitem Using Outlook 6
T Can't remove NEW GROUP in OL2010 Using Outlook 1
S OL2010 - choosing to not save inline images Using Outlook 1
T Reinstalled OL2010 now have 3 separate inboxes and contacts missing Using Outlook 2
T Defer Sending emails in OL2010 Using Outlook 1
G Keyboarding with HTML Email in OL2010-64bit Using Outlook 0
S OL2003 labels in OL2010 Using Outlook 7
R OL2010 Jump Lists Using Outlook 4
K Can I customize OL2010 month view calendar to be more legible; skip confusing colors and show more a Using Outlook 1
D Problem with OL2010 startup Using Outlook 1
A autodiscover issue with OL2010 but no issue with OL2007 Exchange Server Administration 10
T OL2010: Get a duplicate when I "Skip Occurrence" on a recurring task with a restricted range Using Outlook 3
I OL2010: How to hide other users contact folders ?? Using Outlook 3
Y OL2010 32-bit with Outlook Connector: how do I delete the calendar in the .pst? Using Outlook 2
S OL2010: Keyboard Shortcut for Smart Tags Using Outlook 1
B how to debug in OL2010? Outlook VBA and Custom Forms 3
M OL2007 Add-in won't install on OL2010 Outlook VBA and Custom Forms 1
C Create a Ribbon for the OL2010 Explorer Outlook VBA and Custom Forms 1
N Which Button Was Clicked on the Ribbonbar Menu Outlook VBA and Custom Forms 2
E Can't accept or decline task (no button appears) Using Outlook 4
M VbScript for Command Button on Contacts Custom Form Using Outlook 1
Q Prompt button to auto turn on Out of Office Outlook VBA and Custom Forms 3
C iCloud Setting missing Outlook tab and Outlook missing the iCloud refresh button Using Outlook 4
witzker Outlook 2010 Insert Date & Time at the button of an OL contactform in red Using Outlook 2
S How to set up button in ribbon for individual Quick Steps Using Outlook 1
C Custom Outlook Form - Populate Information from Radio Button / Check Box Using Outlook 0
J Command Button to stamp a date and time in a textbox in Outlook 2016 Outlook VBA and Custom Forms 3
A ScanPST finding errors but no Repair button Using Outlook 2
N Creating a button or link to a form in the Organizational Forms Library Outlook VBA and Custom Forms 3
J Execute Add-In Button from VBA Outlook 2016 Outlook VBA and Custom Forms 1
D Command Button code will not execute. Any suggestions Please. Outlook VBA and Custom Forms 2
S Reminder Dialog Open Button Using Outlook 2
Similar threads


















































Top