Home |
Search |
Today's Posts |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
- On the userform, add a checkbox, say CheckBox1. - Now put all the controls that should show/hide based on checkbox1 on a Frame, say Frame1 - in the userform code module, insert the code: Private Sub CheckBox1_Click() Frame1.Visible = CheckBox1.Value End Sub Checking or unchecking checkbox1 makes the Frame1 (and all controls on that frame) show or hide. To add another checkbox, follow the same process replacing CheckBox1 by Checkbox2, Frame1 by Frame2 and same in the code: Private Sub CheckBox2_Click() Frame2.Visible = CheckBox2.Value End Sub .... -- Regards, Sébastien <http://www.ondemandanalysis.com "krc547" wrote: I need a user form that allows a user to select a check box and according to which one they select only select item are visible on the form. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Call user form from ThisWorkbook; close file if form closed | Excel Programming | |||
Automatically add a textbox to a user form based on user requireme | Excel Programming | |||
User form ComboBox Items: Remember user entries? | Excel Programming | |||
How to: User Form to assign a user defined range to a macro variab | Excel Programming |