I have this spreadsheet that needs to change the values,
A B C D E F G
5 e e z z u u
10 e e z z u u
20 e e z z u u
30 e e z z u u
40 e e z z u u
50 e e z z u u
Well, every letter there needs to change to the referencial in the column A.
Right now, my code is:
Sub Macro1()'
'Line 2
Range("C2:H2").Select
Selection.Replace What:="e", Replacement:=Range("A2").Value, LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="z", Replacement:=Range("A2").Value, LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Selection.Replace What:="u", Replacement:=Range("A2").Value, LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub
In the original sheet I have over 300 lines to format. All ranged E7:BQ7. So, I need to make a LOOP, changing the range of selection and also my referencial.
Someone can help with this?