Revolving email address in vbscript

L

Long Nguyen

I wonder what is the best way to handle the supposedly valid addresses which
can not be resolved through Resolved method in the custom form's vbscript. I
am talking about addresses that have same prefix, such as "IT Business" and
"IT Business Support". If you compose a new email and type in "IT Business"
in the To field and click on the Check names button, Outlook would display
the Check Names dialog box with two entries for you to choose from. However
when you use the Resolved method to resolve "IT Business" in vbscript it
would return False, although IT Business is a valid address.

Ideas?

Thanks
Long
 
G

Guest

Long,

Try prefixing the address with "=". This would require an exact match.

MyItem.To = "=" & MyPage.ComboBox3.Value

Ross
 
L

Long Nguyen

Many thanks Ross. It works. ;-)

Long

Ross said:
Long,

Try prefixing the address with "=". This would require an exact match.

MyItem.To = "=" & MyPage.ComboBox3.Value

Ross
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top