Ich habe mehrere OptionButton im eine UF eingefügt!
Ist es möglich herauszufinden, welchen OptionButton ich aktiviert habe?
z.B. OptionButton3 ist aktiv
dann xy = OptionButton? .Caption
Gruss Werner
Private Sub CommandButton1_Click()
Dim ctl As Object
DeineVariable = ""
For Each ctl In Controls
If TypeName(ctl) Like "Option*" Then
If ctl Then
DeineVariable = ctl.Name
Exit For
End If
End If
Next
MsgBox DeineVariable
End Sub