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 / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Set More Than 1 Value with Option

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kevin R - 20 Oct 2006 21:00 GMT
I'm trying to figure out how to set more than 1 value my selecting a single
option.  For example when the user select Mr or Ms, I need to insert
different words to identify the gender in the document text.  Here is what I
have but its not working.  I thought I could use "And" but apparently not.  
Thanks for the help.

If optMr = True Then strGender1 = "Mr." And strGender2 = "his" And
strGender3 = "him" And strGender4 = "he"
Helmut Weber - 20 Oct 2006 21:20 GMT
Hi Kevin,

like this:

If optMr = True Then
 strGender1 = "Mr."
 strGender2 = "his"
 strGender3 = "him"
 strGender4 = "he"
end if

HTH

Signature

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"

 
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.