I found the following script which renames files, can someone please help with a script which will highlight each cell that wasn't changed as yellow.
Code:
Sub ReName()
Dim r As Range, msg As String
For Each r In Range("a1", Range("a" & Rows.Count).End(xlUp))
If (r.Value <> "") * (r.Offset(, 1).Value <> "") Then
If Dir(r.Value) <> "" Then
Name r.Value As r.Offset(, 1).Value
Else
msg = msg & vbLf & r.Value
End If
End If
Next
MsgBox IIf(Len(msg) > 0, "Missing following file(s)" & msg, "Done")
End Sub