M
murperi
I would like to have 5 groups of 2 OptionButtons on a UserForm for th
user to select units (i.e., inches or mm) for some measurements the
have entered and want to be able to tell the state of the optio
buttons on a worksheet.
I have grouped my OptionButtons into groups of two using the Group Nam
property.
I seem to have a problem with the state of the Option Buttons no
changing when I select them. For instance, if I have a group of tw
called in. and mm., and by default the in. button is selected, when
try to select the mm. button, the state of the in. button changes t
FALSE but the state of the mm. button stays FALSE too. When I clic
the mm. button a second time, it finally changes to TRUE. This proble
occurs when I use control source property of the Option Button to lin
it to a cell on my worksheet. If I don't use the control sourc
property, the Option Buttons work correctly and change state on th
first click but then I am left with the question of knowing the stat
of the buttons on my worksheet.
I have also tried VBA code something like:
Private Sub OptionButton1_Click()
OptionButton1.Value = True
OptionButton2.Value = False
End Sub
Private Sub OptionButton2_Click()
OptionButton2.Value = True
OptionButton1.Value = False
End Sub
but still have the problem of having to click the button twice for i
to change state.
Any help would be greatly appreciated!
Eri
user to select units (i.e., inches or mm) for some measurements the
have entered and want to be able to tell the state of the optio
buttons on a worksheet.
I have grouped my OptionButtons into groups of two using the Group Nam
property.
I seem to have a problem with the state of the Option Buttons no
changing when I select them. For instance, if I have a group of tw
called in. and mm., and by default the in. button is selected, when
try to select the mm. button, the state of the in. button changes t
FALSE but the state of the mm. button stays FALSE too. When I clic
the mm. button a second time, it finally changes to TRUE. This proble
occurs when I use control source property of the Option Button to lin
it to a cell on my worksheet. If I don't use the control sourc
property, the Option Buttons work correctly and change state on th
first click but then I am left with the question of knowing the stat
of the buttons on my worksheet.
I have also tried VBA code something like:
Private Sub OptionButton1_Click()
OptionButton1.Value = True
OptionButton2.Value = False
End Sub
Private Sub OptionButton2_Click()
OptionButton2.Value = True
OptionButton1.Value = False
End Sub
but still have the problem of having to click the button twice for i
to change state.
Any help would be greatly appreciated!
Eri