Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
CheckBox Ticked, ComboBoxBox visible?
I have the following code below only works when the userform is displayed. If
I un-check the checkbox which then hides a combobox. If then close the userform and reopen it again the combobox is visible even though the checkbox is not ticked. How can I get over this problem? Private Sub CheckBox62_Change() If CheckBox62.Value = True Then ComboBox7.Visible = True Label106.Visible = True Else CheckBox62.Value = False ComboBox7.Visible = False Label106.Visible = False End If End Sub |
#2
Posted to microsoft.public.excel.misc
|
|||
|
|||
CheckBox Ticked, ComboBoxBox visible?
Hi hoyos
add following to your code Private Sub UserForm_Initialize() ComboBox7.Visible = False Label106.Visible = False End Sub Regards Om "hoyos" wrote: I have the following code below only works when the userform is displayed. If I un-check the checkbox which then hides a combobox. If then close the userform and reopen it again the combobox is visible even though the checkbox is not ticked. How can I get over this problem? Private Sub CheckBox62_Change() If CheckBox62.Value = True Then ComboBox7.Visible = True Label106.Visible = True Else CheckBox62.Value = False ComboBox7.Visible = False Label106.Visible = False End If End Sub |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
CheckBox Ticked, ComboBoxBox visible?
Many thanks OM that works well.
"om" wrote: Hi hoyos add following to your code Private Sub UserForm_Initialize() ComboBox7.Visible = False Label106.Visible = False End Sub Regards Om "hoyos" wrote: I have the following code below only works when the userform is displayed. If I un-check the checkbox which then hides a combobox. If then close the userform and reopen it again the combobox is visible even though the checkbox is not ticked. How can I get over this problem? Private Sub CheckBox62_Change() If CheckBox62.Value = True Then ComboBox7.Visible = True Label106.Visible = True Else CheckBox62.Value = False ComboBox7.Visible = False Label106.Visible = False End If End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Allowing only 1 check box to be ticked | Excel Discussion (Misc queries) | |||
Add contents of two cells when a tick box is ticked | Excel Worksheet Functions | |||
Show todays date if ticked | Excel Discussion (Misc queries) | |||
get a list of ticked add-in | Excel Worksheet Functions | |||
ticked items on Pivot tables | Excel Discussion (Misc queries) |