They are Serial dates
Dim ws As Worksheet, wb As Workbook
Dim fList As Variant, i As Integer
Dim Rng1, Rng2, rep As Range
Dim Mydate As Date
Mydate = Date
Dim strMyChar As String, strMyReplace As String
Dim replace As String
With ActiveWorkbook.Worksheets("Sheet4")
Set Rng1 = .[a1:a1500] ' i set this up to 1500 rows incase there will be more updates
End With
With ActiveWorkbook.Worksheets("Data")
Set Rng2 = .[A1:Z500] ' this is the range where it will change all instances
End With
For Each rep In Rng1.Cells
strMyChar = rep.Value
replace = rep.Offset(0, 2).Value
strMyReplace = rep.Offset(0, 1).Value
With Rng2
If replace = Mydate Then
.replace What:=strMyChar, Replacement:=strMyReplace, _
SearchOrder:=xlByColumns, MatchCase:=True
End If
End With
Next rep
Bookmarks