Set More Than 1 Value with Option

K

Kevin R

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"
 
H

Helmut Weber

Hi Kevin,

like this:

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

HTH

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

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

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