Hi All,
I have a userform that has two checkboxes - 'OBTCL' & 'OBNAS'. When the value of 'OBTCL' is true I would like it to show an Option Button 'OBLabel'. If false then hide 'OBLabel'
All the above are on the same userform - 'UserForm1'.
I have tried the following:
Sub UserForm1_Initialise()
UserForm1.Me.Controls("OBLabel").Visible = False
If OBTCL.Value = True Then
UserForm1.Me.Controls("OBLabel").Visible = True
Else
If OBNAS.Value = True Or OBTCL.Value = False Then
UserForm1.Me.Controls("OBLabel").Visible = False
End If
End If
End Sub
The above still shows 'OBLabel. I'm also not sure if i have put the code in the correct Sub, 'UserForm1_Initialise'?
Any help on the above would be appreciated as always.
Cheers,
Mark
Bookmarks