Hi
Paste the following codes in the macro window ( Alt f11 insert > module)
Sub check_file()
Dim f As String
Dim a As Integer, x As Integer, y As Integer
Cells(2, 1).Select
f = Dir("C:\Documents and Settings\c.connor\Desktop\colinVariableData\Images\" & "*.eps")
Do While Len(f) > 0
ActiveCell.Formula = f
ActiveCell.Offset(1, 0).Select
f = Dir()
Loop
x = Cells(Rows.Count, 1).End(xlUp).Row
y = Cells(Rows.Count, 4).End(xlUp).Row
For a = 2 To y
Cells(1, 5) = "=match(D" & a & ",A2:A" & x & ",0)"
Cells(1, 6) = "=iserror(E1)"
If Cells(1, 6) = False Then
Cells(a, 5) = "file exists"
Else
Cells(a, 5) = "No"
End If
Next a
End Sub
run the macro. it will list all files in the said folder and compares with your list and fills col E with yes or no
Ravi
Bookmarks