Sub kod_düşeyaraYUNUSUÇAR()
Application.ScreenUpdating = False
Dim U As Long
Dim S1 As Worksheet
Dim SV As Worksheet
Set SV = Sheets("RAPOR")
Set S1 = Sheets("HAM ÜRÜNLER")
On Error Resume Next
S1.Range("K4:K65536").ClearContents
For U = 2 To S1.[H65536].End(3).Row
If S1.Cells(U, "H") <> "" Then
If WorksheetFunction.CountIf(SV.Range("A:A"), S1.Cells(U, "H")) > 0 Then ' EĞERSAY
' SAĞDAKİ
S1.Cells(U, "K") = WorksheetFunction.VLookup(S1.Cells(U, "H"), SV.Range("A:X"), 2, 0)
Else
S1.Cells(U, "K") = "0"
End If
Else
End If
Next U
Application.ScreenUpdating = True
MsgBox " Yunus UÇAR "
End Sub
Application.ScreenUpdating = False
Dim U As Long
Dim S1 As Worksheet
Dim SV As Worksheet
Set SV = Sheets("RAPOR")
Set S1 = Sheets("HAM ÜRÜNLER")
On Error Resume Next
S1.Range("K4:K65536").ClearContents
For U = 2 To S1.[H65536].End(3).Row
If S1.Cells(U, "H") <> "" Then
If WorksheetFunction.CountIf(SV.Range("A:A"), S1.Cells(U, "H")) > 0 Then ' EĞERSAY
' SAĞDAKİ
S1.Cells(U, "K") = WorksheetFunction.VLookup(S1.Cells(U, "H"), SV.Range("A:X"), 2, 0)
Else
S1.Cells(U, "K") = "0"
End If
Else
End If
Next U
Application.ScreenUpdating = True
MsgBox " Yunus UÇAR "
End Sub
