DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub CommandButton1_Click()
Dim Satır As Long
With Sheets("Sayfa2")
[B][COLOR="Red"]If WorksheetFunction.CountIf(.Range("B2.B65536"), CDbl(TextBox1.Text)) > 0 Then
MsgBox "Bu Kod nolu ürün daha önceen girilmiş." & vbLf & "evrengizlen@hotmail.com" & _
vbLf & "24.04.2011", vbOKOnly + vbInformation
TextBox1.SetFocus
Exit Sub
End If[/COLOR][/B]
If .Range("A2") = "" Then
.Range("A2") = 1
.Range("A2").Offset(0, 1) = TextBox1.Text
.Range("A2").Offset(0, 2) = TextBox2.Text
.Range("A2").Offset(0, 3) = TextBox3.Text
.Range("A2").Offset(0, 4) = TextBox4.Text
Else
Satır = .Cells(Rows.Count, 1).End(xlUp).Offset(1, 0).Row
.Cells(Satır, 1) = Satır - 1
.Cells(Satır, 2) = TextBox1.Text
.Cells(Satır, 3) = TextBox2.Text
.Cells(Satır, 4) = TextBox3.Text
.Cells(Satır, 5) = TextBox4.Text
End If
End With
MsgBox "Kayıt işlemi tamamlanmıştır.", vbInformation
End Sub
Rica ederim.Evren Bey tam istediğim gibi oldu Allah razı olsun.