Outlook check names via VBA

Is there a way to force check names in Outlook via VBA before sending email via VBA?  I ask because I'm getting an error when I send the following string as the email recipient "<address1>;<address2>", I get a name not recognized error.  But, when I go into outlook and type the string and hit check names, Outlook recognizes the addresses.
Who is Participating?
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.

I think you would be better off having a combo box for recipients that will provide you with autofill capabilities and the ability to add names to the list via a "not in list event" procedure.  The following link has free working demo with source code that you can download that will make it easy for you to implement.  After the web page comes up, select Email to Multiple Recipients Using an Outlook Object from the combo box on the left.

if you really want to do this in code, you would need to create an Outlook session and Recipient object to use the  .Resolve function ... but the user will get prompted with the  "... an application is trying to use yout address book" security message :-(


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
msanzenbAuthor Commented:
I ended up using the recipient object and the .resolve function....worked great!  Thanks!
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 Access

From novice to tech pro — start learning today.