DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub AraYaz()
Dim c As Range, ilkadres As Variant, Sc As Worksheet
Dim sat As Long, Aranan_Deger
Set Sc = Sheets("(1) Select crd_courier")
Application.ScreenUpdating = False
Sheets("Sheet1").Select
Cells.Clear
Sc.Range("A1", Sc.Cells(1, Columns.Count)).Copy Range("A1")
[COLOR=blue]Aranan_Deger[/COLOR] = "[COLOR=red]510[/COLOR]"
sat = 2
With Sc.Range("B:B")
Set c = .Find(Aranan_Deger, LookAt:=xlPart)
If Not c Is Nothing Then
ilkadres = c.Address
Do
Sc.Rows(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
Application.ScreenUpdating = True
End Sub
Sub AraYaz()
Dim c As Range, ilkadres As Variant, Sc As Worksheet
Dim sat As Long, i As Long, Aranan_Deger As String, AranacakOlanlar
Set Sc = Sheets("(1) Select crd_courier")
Application.ScreenUpdating = False
Sheets("Sheet1").Select
Cells.Clear
Sc.Range("A1", Sc.Cells(1, Columns.Count)).Copy Range("A1")
[COLOR=blue]AranacakOlanlar = Array("[COLOR=red]510[/COLOR]", "[COLOR=red]004[/COLOR]", "[COLOR=red]545[/COLOR]")
[/COLOR]
sat = 2
For i = 0 To UBound(AranacakOlanlar)
Aranan_Deger = AranacakOlanlar(i)
With Sc.Range("B:B")
Set c = .Find(Aranan_Deger, LookAt:=xlPart)
If Not c Is Nothing Then
ilkadres = c.Address
Do
Sc.Rows(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