View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Colo[_105_] Colo[_105_] is offline
external usenet poster
 
Posts: 11
Default Placing Optionbutton Value

Patrick, please see the code below.

Private Sub OptionButton1_Click()
ActiveCell.Value = 0
End Sub

Private Sub OptionButton2_Click()
ActiveCell.Value = 30
End Sub

Private Sub OptionButton3_Click()
ActiveCell.Value = 60
End Sub


--
Regards,
Colo
http://www.puremis.net/excel/

"Patrick Simonds" wrote in message
...
I have 3 optionbuttons (optionbutton1 - 3) which are in optiongroup lunch.
Since only one of the three button can be active, how would I place that
value of the active optionbutton in a cell.

optionbutton1 = 0
optionbutton2 = 30
optionbutton3 = 60