Sub ertert()
Dim x, i&, wsh As Worksheet
Set wsh = ThisWorkbook.Sheets("Sheet1")
With wsh.Range("B1", wsh.Cells(Rows.Count, 2).End(xlUp))
.Interior.Color = xlNone: x = .Value
End With
Application.ScreenUpdating = False
With GetObject(Range("S3").Value)
With .Sheets("Store1Data").Columns(3)
For i = 6 To UBound(x)
If .Find(x(i, 1), LookIn:=xlValues, lookat:=xlWhole) Is Nothing Then wsh.Cells(i, 2).Interior.ColorIndex = 43
Next
End With
.Close 0
End With
Application.ScreenUpdating = True
End Sub
it is assumed that the S3 cell has value something like E:\Downloads\Store1Data.xls
Bookmarks