merhaba
Aşağıdaki kod ile userform ile veri girişi sırasında Sat! sayfasındaki L kolonunu kontrol ediyorum ve ona göre mesaj alıyorum.
Bu koda ilave olarak P ve Q kolonlarınıda kontrol etmek istiyorum?Nasıl yapabilirim?
Not: "ComboBox3 & TextBox8 & TextBox9 & TextBox10 & ComboBox2 " şartı aynen geçerlidir.
Teşekkürler
Dim KRT As String, SY As Integer, sat As Long
If ComboBox3 <> "" And TextBox8 <> "" And TextBox9 <> "" And TextBox10 <> "" And ComboBox2 <> "" Then
KRT = ComboBox3 & TextBox8 & TextBox9 & TextBox10 & ComboBox2
SY = WorksheetFunction.CountIf([sat!L:L], KRT)
If SY > 0 Then
TextBox14.Value = "D e v a m"
Else
MsgBox "uyumsuzluk tespit edildi.!" & Chr(10) & "Lütfen kontrol ediniz !", vbCritical, "Dikkat !"
Exit Sub
End If
End If
Aşağıdaki kod ile userform ile veri girişi sırasında Sat! sayfasındaki L kolonunu kontrol ediyorum ve ona göre mesaj alıyorum.
Bu koda ilave olarak P ve Q kolonlarınıda kontrol etmek istiyorum?Nasıl yapabilirim?
Not: "ComboBox3 & TextBox8 & TextBox9 & TextBox10 & ComboBox2 " şartı aynen geçerlidir.
Teşekkürler
Dim KRT As String, SY As Integer, sat As Long
If ComboBox3 <> "" And TextBox8 <> "" And TextBox9 <> "" And TextBox10 <> "" And ComboBox2 <> "" Then
KRT = ComboBox3 & TextBox8 & TextBox9 & TextBox10 & ComboBox2
SY = WorksheetFunction.CountIf([sat!L:L], KRT)
If SY > 0 Then
TextBox14.Value = "D e v a m"
Else
MsgBox "uyumsuzluk tespit edildi.!" & Chr(10) & "Lütfen kontrol ediniz !", vbCritical, "Dikkat !"
Exit Sub
End If
End If
