Suggestions on how to add code to require Option?
UserForm1 includes 2 OptionButtons
If neither OptionButton is True Then
MsgBox "Option Required"
UserForm1 includes 2 OptionButtons
If neither OptionButton is True Then
MsgBox "Option Required"
Code:
Private Sub CommandButton1_Click()
With Sheet11
Sheet11.Unprotect
Set ws = Sheet11
PName = UF1.ComboBox1.Value
Set CLoc = ws.Columns("C:C").Find(What:=PName, after:=ws.Cells(1, 3), LookIn:= _
xlFormulas, LookAt:=xlWhole, SearchOrder:=xlByColumns, SearchDirection:= _
xlNext, MatchCase:=False, SearchFormat:=False)
iRow = CLoc.Row
ws.Cells(iRow, 14) = "A"
ws.Cells(iRow, 15) = Date
If OptionButton1 = True Then
ws.Cells(iRow, 16) = "Cash"
Else
ws.Cells(iRow, 16) = "Ck#" & TextBox1.Value
End If
End With
Unload Me
End Sub