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

Re: Radio button to Check Box in Active Document? by Jay

Jay
Mon Oct 30 21:30:15 CST 2006

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.

On Mon, 30 Oct 2006 14:25:01 -0800, Angyl
<Angyl@discussions.microsoft.com> wrote:

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

Re: Radio button to Check Box in Active Document? by Angyl

Angyl
Tue Oct 31 10:12:02 CST 2006

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.

"Jay Freedman" wrote:

> 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.
>
> On Mon, 30 Oct 2006 14:25:01 -0800, Angyl
> <Angyl@discussions.microsoft.com> wrote:
>
> >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
> >
>