Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Word VBA - Linking Option Boxes

Status
Not open for further replies.

Roam2k2

Programmer
Aug 4, 2008
9
CA
Is it possible to link VBA Option Boxes together ? For instance, have two option boxes correspond ONLY to each other but have another two on a different page correspond ONLY to themselves ?

When coding, I notice that whenever the user selects one set of option boxes the other set, despite being on a previous page, become unselected.

I'm not sure how to proceed as my project relies on specific option boxes from both pages being either TRUE or False.

Any Suggestions ?
- Roam.
 
If these are ActiveX OptionButtons in the documents - and I believe from your other post that this is the case - then use GroupName.

On page 1:

OptionButton1.GroupName = Page1
OptionButton2.GroupName = Page1

On page 2

OptionButton3.GroupName = Page2
OptionButton4.GroupName = Page2

Now OptionButton1 and OptionButton2 function together and separately from OptionButton3 and OptionButton4 (which function together).


faq219-2884

Gerry
My paintings and sculpture
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top