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
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 FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
>I guess this is a two part question.
>
[quoted text clipped - 17 lines]
>End If
>End With
Angyl - 31 Oct 2006 17:12 GMT
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.
> 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
[quoted text clipped - 36 lines]
> >End If
> >End With