Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / January 2006

Tip: Looking for answers? Try searching our database.

user details

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Rookie - 30 Jan 2006 02:57 GMT
I have a generic txt box on a custom appt form that is being used for
receipents.  What I want to do is place a button on the form that acts as a
"check names".  What I need is if the value is a valid address I need to be
able to find things like display name and such.  Any help would be greatly
appreicated.  Below is the code I have so far.

Sub CommandButton2_Click()
 strChangeTo = Item.UserProperties.Find("ChgTo").Value
 z=split(strChangeTo,";")
 i=0
 Do until i = (ubound(z)+1)
    Set objRecip = Item.Recipients.Add(z(i))
    if objRecip.resolve = true then
       msgbox z(i) & " is a valid address."
    else
       msgbox z(i) & " is not a valid address."
    end if
   i=i+1
 Loop
End Sub
Signature

Thanks,
Jerry L

Rookie - 30 Jan 2006 05:19 GMT
I figured it out.  it was objRecip.Name
Signature

Thanks,
Jerry L

> I have a generic txt box on a custom appt form that is being used for
> receipents.  What I want to do is place a button on the form that acts as a
[quoted text clipped - 16 lines]
>   Loop
> End Sub
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.