DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub BulAktar()
Dim c As Range, sat As Long, ilkadres As Variant
Dim Sc As Worksheet, Sa As Worksheet, i As Long
Set Sc = Sheets("sorgu kriterleri")
Set Sa = Sheets("ana tablo")
Application.ScreenUpdating = False
Sheets("sonuc").Select
Range("A2:O" & Rows.Count).ClearContents
sat = 2
For i = 2 To Sc.Cells(Rows.Count, "A").End(xlUp).Row
With Sa.[J:J]
Set c = .Find(Sc.Cells(i, "A"), LookIn:=xlValues, LookAt:=xlWhole)
If Not c Is Nothing Then
ilkadres = c.Address
Do
Sa.Range("A" & c.Row & ":O" & c.Row).Copy Range("A" & sat)
sat = sat + 1
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> ilkadres
End If
End With
Next i
Application.ScreenUpdating = True
End Sub