- Katılım
- 15 Eylül 2011
- Mesajlar
- 83
- Excel Vers. ve Dili
- office 2010
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub Guncelle()
Dim Sa As Worksheet, Sg As Worksheet
Dim c As Range, Adr As Variant, i As Long
Set Sa = Sheets("Araç Detayları")
Set Sg = Sheets("Güncel Km ve Saat Bilgileri")
For i = 2 To Sa.Cells(Rows.Count, "B").End(xlUp).Row
With Sg.Range("B:B")
Set c = .Find(Sa.Cells(i, "B"), , xlValues, xlWhole)
If Not c Is Nothing Then
Adr = c.Address
Do
Sg.Cells(c.Row, "AE") = Sa.Cells(i, "C")
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> Adr
End If
End With
Next i
End Sub
S[COLOR="red"][B]a[/B][/COLOR].Cells(c.Row, "AE") = S[B][COLOR="Red"]g[/COLOR][/B].Cells(i, "C")