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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

3 RadioButtons w/ 3 Tables in Word 2000 1

Status
Not open for further replies.

rocknrisk

Programmer
May 14, 2002
43
GB
Hi all,

I am using Word 2000 and I need to be able to hide/unhide 3 tables using 3 radio buttons. i.e.: rb1 unhides tbl1 and hides tbl2 & tbl3, rb2 unhides tbl2 and hides tbl1 & tb3, etc.

Can anyone please help me with this? Any help will be greatly appreciated.

Thank you in advance.[thumbsup2] "Finish what you started"
 
When you go to View Code of the Option Button (1), you should get:

Private Sub OptionButton1_Click()

End Sub

put the follwing code between those two lines

ActiveDocument.Tables(2).Select
With Selection.Font
.Hidden = True
End With
ActiveDocument.Tables(3).Select
With Selection.Font
.Hidden = True
End With
ActiveDocument.Tables(1).Select
With Selection.Font
.Hidden = False
End With

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top