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 Bak As Integer
If Target.Column = 5 Then
Application.EnableEvents = False
If Not IsNumeric(Cells(Target.Row + 1, 4).Value) Then
For Bak = 5 To 8
If Cells(Target.Row, Bak).Value <> "" Then
Rows(Target.Row + 1).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Cells(Target.Row + 1, 4).FormulaR1C1 = Cells(Target.Row, 4).FormulaR1C1
Exit For
End If
Next
ElseIf IsEmpty(Target.Value) Then ' And Cells(Target.Row, Target.Column - 1).Value <> "" Then
Rows(Target.Row).Delete
End If
Application.EnableEvents = True
End If
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 5 Then
Application.EnableEvents = False
If Not IsNumeric(Cells(Target.Row + 1, 4).Value) Then
If Cells(Target.Row, 5).Value <> "" Then
Rows(Target.Row + 1).Insert Shift:=xlDown, CopyOrigin:=xlFormatFromLeftOrAbove
Cells(Target.Row + 1, 4).FormulaR1C1 = Cells(Target.Row, 4).FormulaR1C1
End If
End If
If IsEmpty(Target.Value) Then
Rows(Target.Row).Delete
End If
Application.EnableEvents = True
End If
End Sub