Belleke
Well-Known Member
I have this piece of code when I click an option button
R & S is because the cells are formated as Windings2
this works perfect. but
OPB_.. are option buttons, and I have 48 option buttons
Can this code shorter?
And the second question to make code shorter
I have this code to fill textboxes when I click in a listbox
etc.
(T_... are textboxes)
Same question
Please advice if it is possible.
Thanks
Code:
If OPB_01 Then [F10] = "R"
If OPB_01 Then [H10] = ""
If OPB_02 Then [H10] = "S"
If OPB_02 Then [F10] = ""
this works perfect. but
OPB_.. are option buttons, and I have 48 option buttons
Can this code shorter?
And the second question to make code shorter
I have this code to fill textboxes when I click in a listbox
Code:
T_02.Value = LB_03.Column(1)
T_03.Value = LB_03.Column(2)
T_04.Value = LB_03.Column(3)
T_05.Value = LB_03.Column(4)
(T_... are textboxes)
Same question
Please advice if it is possible.
Thanks