Добрый день. Подскажите пожалуйста по как соеденить в одну формулу 3 формули ниже? Так как они написаны в коде ниже не работает. Ошибка : End If without block If
Код |
---|
1) If TextBox3 = "" - "" Then Cells(10, 7) = Empty Else Cells(10, 7) = Date
End If
2) If ComboBox1 = "Pre-payment" Then Cells(8, 13) = Empty Else Cells(8, 13) = Date
End If
3) If .Range("G3") = Empty Or ComboBox4 = Empty Or TextBox3 = Empty Or TextBox1 = Empty Or TextBox6 = Empty Or TextBox4 = Empty Or ComboBox9 = Empty Or ComboBox8 = Empty Or TextBox5 = Empty Or ComboBox1 = Empty Or ComboBox3 = Empty Or ComboBox10 = Empty Then
MsgBox "Заповніть, будь ласка, всі поля в Payment Request", vbCritical + vbOKOnly
Exit Sub
Else
Cells(3, 13) = TextBox4.Value & " " & ComboBox9.Text
End If
|