DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim X As Byte, Y As Byte, Satır As Long
If Intersect(Target, [K11]) Is Nothing Then Exit Sub
If Target = Empty Then Exit Sub
If WorksheetFunction.CountA(Range("K3:K9")) = 0 Then
MsgBox "Kayıt işlemi için veri girişi yapmalısınız !" & Chr(10) & _
"İşleminiz iptal edilmiştir.", vbCritical
Range("K11") = Empty
Exit Sub
End If
Satır = Range("A65536").End(3).Row + 1
For X = 3 To 9
If Cells(X, "J") <> "" Then
For Y = 2 To 7
If Cells(1, Y) = Cells(X, "J") Then
Cells(Satır, 1) = Range("K2")
Cells(Satır, Y) = Cells(X, "K")
Exit For
End If
Next
End If
Next
Range("K3:K11") = Empty
Range("K2") = Range("K2") + 1
MsgBox "Kayıt işlemi tamamlanmıştır.", vbInformation
End Sub
Option Explicit
Sub KAYDET()
Dim X As Byte, Y As Byte, Satır As Long
If UCase(Range("K11")) = "EVET" Then
If WorksheetFunction.CountA(Range("K3:K9")) = 0 Then
MsgBox "Kayıt işlemi için veri girişi yapmalısınız !" & Chr(10) & _
"İşleminiz iptal edilmiştir.", vbCritical
Exit Sub
End If
Satır = Range("A65536").End(3).Row + 1
For X = 3 To 9
If Cells(X, "J") <> "" Then
For Y = 2 To 7
If Cells(1, Y) = Cells(X, "J") Then
Cells(Satır, 1) = Range("K2")
Cells(Satır, Y) = Cells(X, "K")
Exit For
End If
Next
End If
Next
Range("K3:K11") = Empty
Range("K2") = Range("K2") + 1
MsgBox "Kayıt işlemi tamamlanmıştır.", vbInformation
Else
Range("K11").Select
MsgBox "Lütfen alındı bilgi giriniz !", vbExclamation
End If
End Sub
if Target=empty then
if activecell="" then
Option Explicit
Sub KAYDET()
Dim X As Byte, Y As Byte, Satır As Long
If UCase(Range("P21")) = "EVET" Then
If WorksheetFunction.CountA(Range("Q8:Q20")) = 0 Then
MsgBox "Kayıt işlemi için veri girişi yapmalısınız !" & Chr(10) & _
"İşleminiz iptal edilmiştir.", vbCritical
Exit Sub
End If
Satır = Range("E65536").End(3).Row + 1
For X = 8 To 20
If Cells(X, "P") <> "" Then
For Y = 5 To 15
If Cells(6, Y) = Cells(X, "P") Then
Cells(Satır, "E") = Range("Q7")
Cells(Satır, Y) = Cells(X, "Q")
Exit For
End If
Next
End If
Next
Range("Q8:Q20") = Empty
Range("Q7") = Range("Q7") + 1
MsgBox "Kayıt işlemi tamamlanmıştır.", vbInformation
Else
Range("P21").Select
MsgBox "Lütfen alındı bilgi giriniz !", vbExclamation
End If
End Sub