Mevcut çalışma dosyama ilave olarak 1'er sütun ilavesi yapmak zorunda kaldım.
İlave sütun ekledim ama mevcut formülümde istediğim gibi olmadı,
D ve E hücresini diğer sayfada B-C Hücresine
M ve N hücresini diğer sayfada D-E Hücresine Yazdırıyorum,
ancak ilave hücre yani D hücresinin yanına Yeni E hücresi ekledim, E hücreside F hücresi oldu.
"
D ile E hücresindeki verilerin Toplamı ile F hücresini diğer sayfada B-C Hücresine
N ile O hücresindeki verilerin Toplamı ile P hücresini diğer sayfada D-E Hücresine Yazdırmak istiyorum,
epey uğraştım ama TOPLAMA işlemi ve sırlamayı yapamadım.
Yazdır sayfası :
Private Sub Worksheet_Activate()
Dim s1 As Worksheet
Dim b, d As Long
Dim a As String
Dim c
Application.Calculation = xlCalculationManual
[A:E] = Empty
On Error Resume Next
a = DatePart("d", Date)
Set s1 = Sheets(a)
If s1 Is Nothing Then MsgBox "SAYFA BULUNAMADI": GoTo çık
If s1.Name <> ActiveSheet.Name Then
b = s1.Cells(Rows.Count, "A").End(3).Row
For Each c In s1.Range("B5:B" & b & "," & "L5:L" & b).SpecialCells(xlCellTypeConstants, 23).Cells
d = ActiveSheet.Cells(Rows.Count, "A").End(3).Row + 1
If c.Column = 2 Then
If s1.Range("D" & c.Row) <> "" Then
Cells(d, "a") = c.Value
Range("B" & d & ":C" & d).Value = s1.Range("D" & c.Row & ":E" & c.Row).Value
End If
Else
If s1.Range("M" & c.Row) <> "" Then
Cells(d, "a") = c.Value
Range("D" & d & ":E" & d).Value = s1.Range("M" & c.Row & ":N" & c.Row).Value
End If
End If
Next
End If
çık:
Application.Calculation = xlCalculationAutomatic
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
End Sub
örnek dosya : http://s2.dosya.tc/server/7zv6da/deneme_ornek.rar.html
şimdiden teşekkürler..
İlave sütun ekledim ama mevcut formülümde istediğim gibi olmadı,
D ve E hücresini diğer sayfada B-C Hücresine
M ve N hücresini diğer sayfada D-E Hücresine Yazdırıyorum,
ancak ilave hücre yani D hücresinin yanına Yeni E hücresi ekledim, E hücreside F hücresi oldu.
"
D ile E hücresindeki verilerin Toplamı ile F hücresini diğer sayfada B-C Hücresine
N ile O hücresindeki verilerin Toplamı ile P hücresini diğer sayfada D-E Hücresine Yazdırmak istiyorum,
epey uğraştım ama TOPLAMA işlemi ve sırlamayı yapamadım.
Yazdır sayfası :
Private Sub Worksheet_Activate()
Dim s1 As Worksheet
Dim b, d As Long
Dim a As String
Dim c
Application.Calculation = xlCalculationManual
[A:E] = Empty
On Error Resume Next
a = DatePart("d", Date)
Set s1 = Sheets(a)
If s1 Is Nothing Then MsgBox "SAYFA BULUNAMADI": GoTo çık
If s1.Name <> ActiveSheet.Name Then
b = s1.Cells(Rows.Count, "A").End(3).Row
For Each c In s1.Range("B5:B" & b & "," & "L5:L" & b).SpecialCells(xlCellTypeConstants, 23).Cells
d = ActiveSheet.Cells(Rows.Count, "A").End(3).Row + 1
If c.Column = 2 Then
If s1.Range("D" & c.Row) <> "" Then
Cells(d, "a") = c.Value
Range("B" & d & ":C" & d).Value = s1.Range("D" & c.Row & ":E" & c.Row).Value
End If
Else
If s1.Range("M" & c.Row) <> "" Then
Cells(d, "a") = c.Value
Range("D" & d & ":E" & d).Value = s1.Range("M" & c.Row & ":N" & c.Row).Value
End If
End If
Next
End If
çık:
Application.Calculation = xlCalculationAutomatic
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
End Sub
örnek dosya : http://s2.dosya.tc/server/7zv6da/deneme_ornek.rar.html
şimdiden teşekkürler..
