Dear Learned Friends, i have searched and found similar request but not exact. Any help will greatly be appreciated.
I have certain text found in sheets "Edging" A1
I need to match the text with text found in sheets "Cabinets" column AC
when a match is found, copy the text in same row but column AI
Paste to sheets "Edging" B1
stop search.
Code I have so far cobbled together:
Code
Application.ScreenUpdating = False
Dim lRow As Long
Dim fValue As Range
lRow = Sheets("Cabinets").Range("AC" & Rows.Count).End(xlUp).Row
For Each cell In Sheets("Cabinets").Range("AC1:AC" & lRow)
Set fValue = Sheets("Edging").Columns("C:C").Find(cell.Value)
If fValue Is Nothing Then GoTo NextCell
If cell.Offset(0, 1).Value = fValue.Offset(0, 3).Value Then
cell.Offset(0, 6).Copy
Sheets("Edging").Range("E14").PasteSpecial xlPasteValues
End If
NextCell:
Next cell
Application.CutCopyMode = False
Application.ScreenUpdating = True
'
End Sub
Display More