Knockoutpie
Board Regular
- Joined
- Sep 10, 2018
- Messages
- 116
- Office Version
- 365
- Platform
- Windows
How can I loop this?
this is currently selecting row 4. Finding the value in AO4, and replacing the value in AQ4.
How can i loop this until the end of the sheet? Based on data in column E
next would be select row 5, find value in AO5, replace with value in AQ5
this is currently selecting row 4. Finding the value in AO4, and replacing the value in AQ4.
How can i loop this until the end of the sheet? Based on data in column E
next would be select row 5, find value in AO5, replace with value in AQ5
VBA Code:
Rows(4).Select
Cells.Replace What:=range("AO4").Value, Replacement:=range("AQ4").Value, LookAt:=xlPart, SearchOrder _
:=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=True, _
FormulaVersion:=xlReplaceFormula2