Leighton21
Technical User
Hi Guys,
I am using code similar to the following
For Each WS In Worksheets
WS.Cells.Replace What:=Search, Replacement:=Replacement, _
LookAt:=xlPart, MatchCase:=False
Next
to try to replace values in a sheet. My question is can you reference the row number of the cell that is currently being replaced i.e.
Say if I was on row 6 and I wanted to replace and column B had the Value B[Row] I would like to replace Row with the actual rownumber.
I can do it with a loop but the replace seems quicker
Cheers
I am using code similar to the following
For Each WS In Worksheets
WS.Cells.Replace What:=Search, Replacement:=Replacement, _
LookAt:=xlPart, MatchCase:=False
Next
to try to replace values in a sheet. My question is can you reference the row number of the cell that is currently being replaced i.e.
Say if I was on row 6 and I wanted to replace and column B had the Value B[Row] I would like to replace Row with the actual rownumber.
I can do it with a loop but the replace seems quicker
Cheers