Hi all
I`m trying to select dynamic range and replace a letter within that range
I identified the last row and column of the whole range by R and C respectively
I need to start my selection from the 1-st row, 3-rd column , so I wrote this code:
Range(Cells(1, 3), Cells(R, C)).Select
Cells.Replace What:="h", Replacement:="", LookAt:=xlPart, SearchOrder:= _
xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
But it still replaces data in the 1-st column and 1-st row
Can anyone tell me what is the problem with this code?
I`m trying to select dynamic range and replace a letter within that range
I identified the last row and column of the whole range by R and C respectively
I need to start my selection from the 1-st row, 3-rd column , so I wrote this code:
Range(Cells(1, 3), Cells(R, C)).Select
Cells.Replace What:="h", Replacement:="", LookAt:=xlPart, SearchOrder:= _
xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
But it still replaces data in the 1-st column and 1-st row
Can anyone tell me what is the problem with this code?