Radio button to Check Box in Active Document?

A

Angyl

I guess this is a two part question.

1. Is it possible to send a radio button value (true/false) to a checkbox
in the active document?

If so....How?

I've got a field of radio buttons (which will become check boxes if this
simply isn't possible, but I'd rather use radio buttons) in my user form and
I've got matching check boxes in the active document. I"m trying to get the
code to work so that if a radio button is checked, the check box in the
active document is also checked.

So far I have this, but it's doing nothing at all:

With ActiveDocument
If radLLC.Value = True Then
..FormFields("chkLLC").Value = True
Else
End If
End With
 
J

Jay Freedman

The first thing you're missing is that .FormFields("chkLLC") doesn't
have any property named .Value, so that code should get you a compiler
error when you run it, "Method or data member not found". What you
should use instead is

.FormFields("chkLLC").CheckBox.Value

The second thing is that you don't need an If..Else..End If
construction. Just use this one statement:

ActiveDocument.FormFields("chkLLC").CheckBox.Value = radLLC.Value

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
A

Angyl

UGH! Thanks Jay.

Going through a lot of confusion here, taking a Visual Basic class using
Studio 2005 and then coming back to work and having to work in this outdated
version in Word 2000.
 

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