Sub optionbutton()
'
' optionbutton Macro
'
'
ActiveSheet.Shapes.Range(Array("Option Button 1")).Select
Selection.Characters.Text = Range("A1")
ActiveSheet.Shapes.Range(Array("Option Button 2")).Select
Selection.Characters.Text = Range("A2")
ActiveSheet.Shapes.Range(Array("Option Button 3")).Select
Selection.Characters.Text = Range("A3")
ActiveSheet.Shapes.Range(Array("Option Button 4")).Select
Selection.Characters.Text = Range("A4")
ActiveSheet.Shapes.Range(Array("Option Button 5")).Select
Selection.Characters.Text = Range("A5")
ActiveSheet.Shapes.Range(Array("Option Button 6")).Select
Selection.Characters.Text = Range("A6")
ActiveSheet.Shapes.Range(Array("Option Button 7")).Select
Selection.Characters.Text = Range("A7")
End Sub
ActiveSheet.Shapes.Range(Array("Option Button 1")).Characters.Text = Range("A1")
ActiveSheet.Shapes.Range(Array("Option Button 1")).Select
Selection.Characters.Text = Range("A1")
read it, thanksTake a moment to read and understand this https://www.excelguru.ca/content.php?184
Sub OptionButton_Click()
Dim i As Long
With Sheet1
For i = 1 To 2
.Shapes(i).TextFrame.Characters.Text = _
Range("Captions").Cells(i).Value
Next i
End With
End Sub
Sheet1.Shapes(1).Visible = msoFalse
Sub OptionButton_Click()
Dim i As Long
With Sheet1
For i = 1 To 2
.Shapes(i).TextFrame.Characters.Text = _
Range("Captions").Cells(i).Value
Next i
Sheet1.Shapes(1).Visible = msoFalse
End With
End Sub
Sub ResetButtons()
Dim i As Long, N As Long
Dim Text As String
N = Range("Captions").Rows.Count
With ActiveSheet
For i = 1 To N
If Range("Captions").Cells(i) = vbEmpty Then
.Shapes(i).Visible = msoFalse
Else
Text = Range("Captions").Cells(i).Value
.Shapes(i).TextFrame.Characters.Text = Text
.Shapes(i).Visible = msoTrue
End If
Next i
End With
End Sub