- Katılım
- 28 Ekim 2011
- Mesajlar
- 17
- Excel Vers. ve Dili
- excel 2002
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)
Dim t As Worksheet, s As Worksheet
Set t = Sheets("TAKSİTLİ SATIŞ"): Set s = Sheets("senetler")
If Intersect(Target, Range("O3:O16")) Is Nothing Then Exit Sub
If t.Cells(Target.Row, "N") < 1 Then
a = 1
Else
a = t.Cells(Target.Row, "N").Value
End If
For i = 1 To a
son = s.Range("B65536").End(3).Row + 1
s.Cells(son, "B") = t.Cells(Target.Row, "D")
If t.Cells(Target.Row, "N") <> "" Then
s.Cells(son, "E") = DateSerial(Year(t.Cells(Target.Row, "o")), Month(t.Cells(Target.Row, "o")) + (i - 1), Day(t.Cells(Target.Row, "o")))
s.Cells(son, "F") = t.Cells(Target.Row, "M") / t.Cells(Target.Row, "N")
Else
s.Cells(son, "F") = t.Cells(Target.Row, "M")
End If
Next
End Sub