sa1 de bulunan G:N sütüunları arasındaki verileri fis sayfasında c sütununa aktarmak istiyorum hocam.
http://s3.dosya.tc/server11/qd6dlo/fis_.rar.html
http://s3.dosya.tc/server11/qd6dlo/fis_.rar.html
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
birde bir sorun daha var hocam. hücre çizgilerini yaptıgımda veri çağırınca çizgileri bozuyor. incelermisiniz.
S1.Cells(c.Row + 1, "A").Resize(a, 6).Copy
Range("A5").PasteSpecial xlPasteValues, xlNone
Application.CutCopyMode = False
Range("A5:F" & Rows.Count).Clear[COLOR="Red"]Contents[/COLOR]
Private Sub ComboBox1_Change()
Dim S1 As Worksheet, c As Range, a As Long
Set S1 = Sheets("sa1")
Application.ScreenUpdating = False
Range("A5:F" & Rows.Count).ClearContents
Range("B2") = ComboBox1.Value
Set c = S1.[B:B].Find(Range("B2"), , xlValues, xlWhole)
If Not c Is Nothing Then
If WorksheetFunction.CountIf(S1.Range("A" & c.Row + 1 & ":A" & Rows.Count), _
S1.Range("A2")) = 0 Then
a = S1.Cells(Rows.Count, "A").End(xlUp).Row - c.Row
Else
a = WorksheetFunction.Match(S1.Range("A2"), _
S1.Range("A" & c.Row + 1 & ":A" & Rows.Count), 0) - 1
End If
S1.Cells(c.Row + 1, "A").Resize(a, 6).Copy
Range("A5").PasteSpecial xlPasteValues, xlNone
Application.CutCopyMode = False
Cells(a + 10, "C") = "Toplam"
Cells(a + 11, "C") = "İşçilik KDV Dahil Tutarı"
Cells(a + 12, "C") = "Mlz. KDV Dahil Tutarı"
Cells(a + 13, "C") = "KDV Dahil Tutar"
Cells(a + 10, "D") = S1.Cells(c.Row, "H")
Cells(a + 11, "D") = S1.Cells(c.Row, "L")
Cells(a + 12, "D") = S1.Cells(c.Row, "J")
Cells(a + 13, "D") = S1.Cells(c.Row, "N")
Columns("C:C").EntireColumn.AutoFit
Range("B2").Select
End If
Unload Me
Application.ScreenUpdating = True
End Sub