Sending e-mail via VBA in Excel

What vba code would I use to send an e-mail (using Outlook)?  The user will select a name from a list (radio button) and from that selection, I would like an e-mail to be sent to the person who's name was selected.  The list contains a name - but maybe I can create a list on another sheet with the names of the e-mail receivers.
SabealgoAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saurabh Singh TeotiaCommented:
This the best i can tell you to check to do what you are looking for...

Check here..

Saurabh...
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
   dim outApp as object, outMsg as object
   Set outApp = CreateObject("Outlook.Application")
                 
   Set outMsg = outApp.CreateItem(0) '0=olMailItem
   'outMsg.Importance = olImportanceHigh
   outMsg.To = sEmail 'where sEmail is the email address
    'outMsg.CC = "CC EMAIL ADDRESS GOES HERE"
    'outMsg.BCC = "BCC EMAIL ADDRESS GOES HERE"
    outMsg.Subject = "CUSTOMIZE THIS SUBJECT"
    outMsg.Body = "CUSTOMIZE THIS MESSAGE"
    'outMsg.Attachments.Add sPathFile 'WHERE sPathFile is the path and filename to attach
    ' If you want to send without editing then comment Display and uncomment Send
    outMsg.Display
    'outMsg.Send

set outMsg = nothing
set outApp = nothing

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SabealgoAuthor Commented:
Thank you for your feedback.
I haven't tested this yet, but I think this will get me to the next step.

Much appreciated.
crystal (strive4peace) - Microsoft MVP, AccessRemote Training and ProgrammingCommented:
you're welcome, happy to help ~
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.