- Katılım
- 15 Mart 2010
- Mesajlar
- 244
- Excel Vers. ve Dili
- 2019 Türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Olmaz Evet ters ama öyle lazım oldu![]()
Tarih A İrsaliye U müşteri ismi M Stoklar G Miktarlar I Fiyatlarda P
Cari kod da Cariler A Sutunları
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim S1 As Worksheet, S2 As Worksheet, STR As Long
Application.ScreenUpdating = False
If Intersect(Target, Range("B1")) Is Nothing Then _
Application.ScreenUpdating = True: Exit Sub
Range("B2").ClearContents: Range("B3").ClearContents: Range("B4").ClearContents
Range("A5:F24").ClearContents
With WorksheetFunction
Set S1 = Sheets("Cariler"): Set S2 = Sheets("Data")
Range("B2") = S2.Range("A" & .Match(Range("B1"), S2.Range("U:U"), 0))
Range("B3") = S2.Range("M" & .Match(Range("B1"), S2.Range("U:U"), 0))
Range("B4") = S1.Range("A" & .Match(Range("B3"), S1.Range("B:B"), 0))
STR = S2.Range("A" & Rows.Count).End(xlUp).Row
S2.Range("A6:X" & STR).AutoFilter 21, Range("B1")
S2.Range("G7:G" & STR).Copy
Range("A5").PasteSpecial
S2.Range("I7:I" & STR).Copy
Range("C5").PasteSpecial
S2.Range("I7:I" & STR).Copy
Range("E5").PasteSpecial
S2.Range("A6:X" & STR).AutoFilter
Target.Select
End With
Application.ScreenUpdating = True
End Sub
Çok teşekkür ederim bir sorum daha olacak B7:X1000 e kadar satırlardaki her şeyi nasıl silebilirim çizgiler ve içerikler her şey
yok bu ayrı
Sub sil()
Range("B7:X1000").Clear
End Sub
yani hücrelere gelen veriler işim bitince silmek istiyorum
Tamamdır.
Emir Hüseyin Çoban ve Asi_Kral Çok teşekkür ederim.Ellerinize sağlık saygılarımla