I am trying to write a macro that when run in an excel sheet will select a specific column and there will replace all instances of a list of strings with a list of other specific strings. For example, any instance of "string a1" will be replaced with "string a2", any "string b1" to "string b2", etc'.
So after selecting the column I need to run
Selection.Replace What:="string a1", Replacement:="string a2", LookAt:=xlWhole
Selection.Replace What:="string b1", Replacement:="string b2", LookAt:=xlWhole
etc'
Now I would like to create a loop to run through the two lists, but I can't figure out what kind of loop can be used for this.
I would appreciate suggestions about how to do this from a list in a (hidden) sheet, or from a list defined in the VBA module.
Many thanks!