- Katılım
- 9 Şubat 2006
- Mesajlar
- 31
- Excel Vers. ve Dili
- Microsoft® Excel® for Microsoft 365 MSO (Version 2202 Build 16.0.14931.20648) 32-bit
İngilizce
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Bul_Aktar()
Dim c As Range, sat As Long, Adr As Variant, S1 As Worksheet
Set S1 = Sheets("Sayfa1")
Application.ScreenUpdating = False
Sheets("Sayfa2").Select
Range("B2:C" & Rows.Count).ClearContents
sat = 2
With S1.Cells
Set c = .Find(Range("A2"), , xlValues, xlWhole)
If Not c Is Nothing Then
Adr = c.Address
Do
[COLOR=red]Cells(sat, "B") = S1.Cells(c.Row, c.Column).Offset(0, -1)[/COLOR]
Cells(sat, "C") = S1.Cells(c.Row, c.Column).Offset(0, 1)
sat = sat + 1
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> Adr
End If
End With
Application.ScreenUpdating = True
End Sub