Re: A Macro For Various Data Corrections From List
I hope the optimism is justified!
Give this a try:
Code
Dim a, i As Long, rCell As Range, ws As Worksheet
a = Sheets("List Sheet").Range("A1").CurrentRegion.Value
With CreateObject("Scripting.Dictionary")
.comparemode = 1
For i = 2 To UBound(a, 1)
If Not .exists(Trim(a(i, 1))) Then .Item(Trim(a(i, 1))) = Trim(a(i, 2))
Next
For Each ws In Worksheets
If ws.Name <> "List Sheet" Then
For Each rCell In ws.Columns("I").SpecialCells(2, 2)
If .exists(Trim(rCell.Value)) Then rCell.Offset(, 4) = .Item(rCell.Value)
Next
End If
Next
End With
Set rCell = Nothing
Set ws = Nothing
End Sub
Display More