DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub GUNCELLE()
Application.ScreenUpdating = False
Dim S1, S2 As Worksheet
Dim SUT1, SUT2 As Long
Set S1 = Sheets("S1")
Set S2 = Sheets("S2")
For SUT1 = 2 To S1.[D65536].End(3).Row
For SUT2 = 2 To S2.[C65536].End(3).Row
If S1.Range("D" & SUT1).Value = S2.Range("C" & SUT2).Value Then
S2.Range("A" & SUT2) = S1.Range("A" & SUT1).Value
End If
Next
Next
Application.ScreenUpdating = True
End Sub
Sub degistir()
Dim k As Range, i As Long
Sheets("S1").Select
Application.ScreenUpdating = False
For i = 2 To Cells(65536, "A").End(xlUp).Row
Set k = Sheets("S2").Range("C2:C65536").Find(Cells(i, "D").Value, LookIn:=xlValues, lookat:=xlWhole)
If Not k Is Nothing Then
Cells(i, "A").Value = Sheets("S2").Cells(k.Row, "A").Value
End If
Next i
Application.ScreenUpdating = True
Set k = Nothing
MsgBox "Dosya NOları değiştirildi", vbOKOnly + vbInformation, "D E Ğ İ Ş İ K L İ K"
End Sub
Ben denedim doğru sonuç veriyor.Tekrardan indirip denermisiniz?Orİon Hocaminkİ YanliŞ KİŞİlere Atiyor
Sub GUNCELLE()
Application.ScreenUpdating = False
Dim S1, S2 As Worksheet
Dim SUT1, SUT2 As Long
Set S1 = Sheets("S1")
Set S2 = Sheets("S2")
For SUT1 = 2 To S1.[D65536].End(3).Row
For SUT2 = 2 To S2.[C65536].End(3).Row
If S1.Range("D" & SUT1).Value = S2.Range("C" & SUT2).Value And S1.Range("G" & SUT1).Value = S2.Range("G" & SUT2).Value Then
S2.Range("A" & SUT2) = S1.Range("A" & SUT1).Value
End If
Next
Next
Application.ScreenUpdating = True
MsgBox "İşlem tamam.", vbInformation
End Sub