- Katılım
- 22 Ocak 2019
- Mesajlar
- 118
- Excel Vers. ve Dili
- Excel 2010
Sub aktar()
Dim sh As Worksheet, sat1 As Long, sat2 As Long, i As Long
Dim k As Range
Set sh = Sheets("Sayfa1")
Sheets("Sayfa2").Select
Range("C:E").Clear
sat1 = Cells(Rows.Count, "B").End(xlUp).Row
sat2 = sh.Cells(Rows.Count, "A").End(xlUp).Row
Application.ScreenUpdating = False
For i = 1 To sat1
Set k = sh.Range("A2:A" & sat2).Find(Cells(i, "B").Value, , xlValues, xlWhole)
If Not k Is Nothing Then
sh.Range("B" & k.Row & ":C" & k.Row).Copy Range("C" & i)
Set k = Nothing
End If
Next i
Set sh = Nothing
Application.ScreenUpdating = True
End Sub
Bu kodu kendime uyarlamaya çalışıyorum; renkli alanlardan ne anlamalıyım acaba?
Yardımlarınız için teşekkür ederim.
Dim sh As Worksheet, sat1 As Long, sat2 As Long, i As Long
Dim k As Range
Set sh = Sheets("Sayfa1")
Sheets("Sayfa2").Select
Range("C:E").Clear
sat1 = Cells(Rows.Count, "B").End(xlUp).Row
sat2 = sh.Cells(Rows.Count, "A").End(xlUp).Row
Application.ScreenUpdating = False
For i = 1 To sat1
Set k = sh.Range("A2:A" & sat2).Find(Cells(i, "B").Value, , xlValues, xlWhole)
If Not k Is Nothing Then
sh.Range("B" & k.Row & ":C" & k.Row).Copy Range("C" & i)
Set k = Nothing
End If
Next i
Set sh = Nothing
Application.ScreenUpdating = True
End Sub
Bu kodu kendime uyarlamaya çalışıyorum; renkli alanlardan ne anlamalıyım acaba?
Yardımlarınız için teşekkür ederim.