Hello,

I have below two code which runs when option button is selected. What I want it to VBA to run when both the option button is selected.

Private Sub Commandbutton_click1

If Optionbutton1 = True then
Call Macro1
Else 
End If
Private Sub Commandbutton_click1

If Optionbutton7 = True then
Call Macro5
Else 
End If

I need to merge these two different code to one, and VBA to run only when both option button is selected.

Thanks