Form field check box

C

cc

Hi,

I'm working on a form in Word 2000. If the user checks a check box (chk2a),
I want three check boxes in the form to be disabled (chk3a, chk3b, chk3c). I
want them to be dimmed and disabled.

Thanks.

cc
 
K

Karl E. Peterson

cc said:
I'm working on a form in Word 2000. If the user checks a check box (chk2a),
I want three check boxes in the form to be disabled (chk3a, chk3b, chk3c). I
want them to be dimmed and disabled.

Did you have a question? What have you tried?
 
G

Greg Maxey

As Karl points out, it is considered polite to ask a question. That said,
you can't get what you want with a form field. In a typical user
environment Word has no concept of the state of a formfield checkbox while
it has the focus (i.e., you can check and uncheck a checkbox until the cows
come home and Word won't know the difference). You can use a macro to
evaulate the state of a formfield checkbox when it is entered or exited.
You can disable other checkboxes on exit or on entry to a specific checkbox,
but the disabled boxes will just be disabled. They are not dimmed:

Sub OnExitCB1()
Dim oFFs As FormFields
Set oFFs = ActiveDocument.FormFields
If oFFs("Check1").CheckBox.Value = True Then
oFFs("Check2").Enabled = False
oFFs("Check3").Enabled = False
oFFs("Check4").Enabled = False
Else
oFFs("Check2").Enabled = True
oFFs("Check3").Enabled = True
oFFs("Check4").Enabled = True
End If
End Sub
 
K

Karl E. Peterson

Greg said:
As Karl points out, it is considered polite to ask a question.

Well, not sure "polite" is the right word; "articulate" might be closer.

I don't think many folks here want to spend time guessing what people's problems
are. It's also nice to feel that an OP has at least *tried* finding their own
answer.
 

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