userform Radio button updates text box

D

dok112

Is there a way to make a text box update based on a radio butto
selection? Basically, I have a form that I am creating that contains
radio buttons and a text box. I want the text box to update to th
radio button selection when it's chosen.

ie.

o Applied Learning Lab
o Transition Lab 1
o Transition Lab 2


and the text box needs to update to that selection that was just made.

Any ideas
 
H

Harald Staff

Private Sub OptionButton1_Click()
TextBox1.Text = OptionButton1.Caption
End Sub

Private Sub OptionButton2_Click()
TextBox1.Text = OptionButton2.Caption
End Sub

and so on

HTH. Best wishes Harald
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top