Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2006

Tip: Looking for answers? Try searching our database.

Radio button to Check Box in Active Document?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Angyl - 30 Oct 2006 23:25 GMT
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
Jay Freedman - 31 Oct 2006 04:30 GMT
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

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.