DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_Change(ByVal Target As Range)
son = Cells(Rows.Count, "A").End(3).Row
If Intersect(Target, Range("B12:G" & son - 1)) Is Nothing Then Exit Sub
a = Target.Row
If Cells(a, "B") <> "" And Cells(a, "C") <> "" And Cells(a, "F") <> "" And Cells(a, "G") <> "" Then
Application.EnableEvents = False
Rows(a).Copy: Rows(a + 1).Insert Shift:=xlDown
Range("A" & a + 1 & ":G" & a + 1).ClearContents
Cells(son + 1, "G").Formula = "=SUM(G12:G" & son & ")"
Cells(a + 1, "A") = a - 10
Cells(son, "B").Select
Application.EnableEvents = True
End If
End Sub
Aşağıdaki kodları sayfa adına sağ tıklayıp Kod görüntüle deyince açılan sayfaya yapıştırıp deneyiniz:
PHP:Private Sub Worksheet_Change(ByVal Target As Range) son = Cells(Rows.Count, "A").End(3).Row If Intersect(Target, Range("B12:G" & son - 1)) Is Nothing Then Exit Sub a = Target.Row If Cells(a, "B") <> "" And Cells(a, "C") <> "" And Cells(a, "F") <> "" And Cells(a, "G") <> "" Then Application.EnableEvents = False Rows(a).Copy: Rows(a + 1).Insert Shift:=xlDown Range("A" & a + 1 & ":G" & a + 1).ClearContents Cells(son + 1, "G").Formula = "=SUM(G12:G" & son & ")" Cells(a + 1, "A") = a - 10 Cells(son, "B").Select Application.EnableEvents = True End If End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
son = Cells(Rows.Count, "A").End(3).Row
If Intersect(Target, Range("B12:G" & son - 1)) Is Nothing Then Exit Sub
a = Target.Row
If Cells(a, "B") <> "" And Cells(a, "C") <> "" And Cells(a, "F") <> "" And Cells(a, "G") <> "" Then
Application.EnableEvents = False
ActiveSheet.Unprotect
Rows(a).Copy: Rows(a + 1).Insert Shift:=xlDown
Range("A" & a + 1 & ":G" & a + 1).ClearContents
Cells(son + 1, "G").Formula = "=SUM(G12:G" & son & ")"
Cells(a + 1, "A") = a - 10
Cells(son, "B").Select
ActiveSheet.Protect
Application.EnableEvents = True
End If
End Sub
PHP:Private Sub Worksheet_Change(ByVal Target As Range) son = Cells(Rows.Count, "A").End(3).Row If Intersect(Target, Range("B12:G" & son - 1)) Is Nothing Then Exit Sub a = Target.Row If Cells(a, "B") <> "" And Cells(a, "C") <> "" And Cells(a, "F") <> "" And Cells(a, "G") <> "" Then Application.EnableEvents = False ActiveSheet.Unprotect Rows(a).Copy: Rows(a + 1).Insert Shift:=xlDown Range("A" & a + 1 & ":G" & a + 1).ClearContents Cells(son + 1, "G").Formula = "=SUM(G12:G" & son & ")" Cells(a + 1, "A") = a - 10 Cells(son, "B").Select ActiveSheet.Protect Application.EnableEvents = True End If End Sub