rodney_malodney
Board Regular
- Joined
- Jul 19, 2005
- Messages
- 116
ok i do apologise for being a pain,
i have 6 option buttons on a userform, the user must select two, one from each page.
how can i do an if of the option buttons, i have this but it doesnt appear to work:
i have 6 option buttons on a userform, the user must select two, one from each page.
how can i do an if of the option buttons, i have this but it doesnt appear to work:
Code:
Private Sub CommandButton1_Click()
If optionbox6 = True Then
If optionbox7 = True Then
Range("b30") = "630.80"
Else: End If
If optionbox6 = True Then
If optionbox8 = True Then
Range("b30") = "785.40"
Else: End If
If optionbox6 = True Then
If optionbox9 = True Then
Range("b30") = "873.94"
Else: End If
If optionbox5 = True Then
If optionbox7 = True Then
Range("b30") = "791.83"
Else: End If
If optionbox5 = True Then
If optionbox8 = True Then
Range("b30") = "940.88"
Else: End If
If optionbox5 = True Then
If optionbox9 = True Then
Range("b30") = "1037.67"
Else: End If
If optionbox4 = True Then
If optionbox7 = True Then
Range("b30") = "813.81"
Else: End If
If optionbox4 = True Then
If optionbox8 = True Then
Range("b30") = "967.94"
Else: End If
If optionbox4 = True Then
If optionbox9 = True Then
Range("b30") = "1063.17"
'
End Sub