- Code: Select all
Sub CheckFiles()
Dim selectedCell As Range
Const strPath = "D:\temp\"
For Each selectedCell In Selection
If Dir(strPath & selectedCell.Value) = "" Then
Debug.Print selectedCell.Row
End If
Next selectedCell
End Sub
Sub CheckFiles()
Dim selectedCell As Range
Const strPath = "D:\temp\"
For Each selectedCell In Selection
If Dir(strPath & selectedCell.Value) = "" Then
Debug.Print selectedCell.Row
End If
Next selectedCell
End SubUsers browsing this forum: No registered users and 1 guest