ich habe eine Userform mit 2 Optionsschaltern.
Bei Betätigung der entsprechenden Option möchte ich einen best. Wert
An ein Makro übergeben.
Wie macht man das?
Danke im voraus Peter
z.B.
Private Sub optWert1_Click()
If optWert1 = True Then Wert = 1
Call Makro
Unload Me
End Sub
Private Sub optWert2_Click()
If optWert2 = True Then Wert = 2
Call Makro
Unload Me
End Sub
'im Modul
Sub Makro()
MsgBox Wert
End Sub