ckarabacak
Altın Üye
- Katılım
- 12 Ocak 2010
- Mesajlar
- 365
- Excel Vers. ve Dili
- Excel 2010
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)
If Intersect(Target, [G2]) Is Nothing Then Exit Sub
Dim col As Integer
col = Month(Range("G2")) + 45
Cells(4, col) = Range("AI4")
If Month(Range("G2")) < 12 Then Cells(4, col).Offset(0, 1) = ""
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [G2]) Is Nothing Then Exit Sub
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
Dim col As Integer
Dim i As Integer
Dim rng As Range
col = Month(Range("G2")) + 46
Set rng = Range("B2").CurrentRegion
i = 4
Do
rng(i, col) = Cells(i, "AK")
If Month(Range("G2")) < 12 Then _
rng(i, col + 1).Resize(1, rng.Columns.Count - col) = ""
i = i + 1
Loop Until rng(i, 1) = "GENEL TOPLAM" Or rng(i, 2) = ""
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [G2]) Is Nothing Then Exit Sub
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
Dim col As Integer
Dim i As Integer
col = Month(Range("G2")) + 47
i = 4
Do
Cells(i, col) = Cells(i, "AK")
Range(Cells(i, col + 1), Cells(i, 60)) = ""
i = i + 1
Loop Until Cells(i, "B") = "GENEL TOPLAM"
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
End Sub
Sub MatrahAktar()
With Application
.ScreenUpdating = False
.EnableEvents = False
End With
Dim col As Integer
Dim i As Integer
col = Month(Range("G2")) + 47
i = 4
Do
Cells(i, col) = Cells(i, "AK")
Range(Cells(i, col + 1), Cells(i, 60)) = ""
i = i + 1
Loop Until Cells(i, "B") = "GENEL TOPLAM"
With Application
.ScreenUpdating = True
.EnableEvents = True
End With
End Sub