I'm fairly new to VBA (as in this is my first attempt with it) and am working on a macro to find and replace a large set of numbers with slightly modified numbers in a spreadsheet named "AA SERIES". I'm storing these in a spreadsheet named "PartNumbers", with the existing ones in column I and the replacements in J. The code shown below works fine for this:
Sub Macro1()
Dim i As Integer
Dim WS As Worksheet
Dim FindStr As String
Dim RepStr As String
For i = 1 To 87
For Each WS In Workbooks("AA SERIES").Worksheets
FindStr = Workbooks("PartNumbers").Sheets("Sheet1").Range("I" & i).Value
RepStr = Workbooks("PartNumbers").Sheets("Sheet1").Range("J" & i).Value
Cells.Replace What:=FindStr, Replacement:=RepStr
Next
Next i
End Sub
However, what I'd like it to do is also format the entire column a different color (ideally light purple) if the macro replaces a value in it. The goal is that the next person to work with this sheet will be able to quickly scroll through and see where the changes are.
Any suggestions?