frustrated_macro
New Member
- Joined
- Sep 4, 2019
- Messages
- 49
- Office Version
- 365
- Platform
- Windows
So i have data in columns A and B which are exact. im trying to replace the text JUST in column A from X to Z and i thought it had been working but i just realized its grabbing the text in column B and replacing it too.
I cant have it replace what is in B because that is the true final text. im just using column A text to group categories together to later use the FILTER function
what am i doing wrong?
Columns("A:A").Select
Selection.Replace What:="Example Text", Replacement:="AS & TNT", LookAt _
:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula2
I cant have it replace what is in B because that is the true final text. im just using column A text to group categories together to later use the FILTER function
what am i doing wrong?
Columns("A:A").Select
Selection.Replace What:="Example Text", Replacement:="AS & TNT", LookAt _
:=xlPart, SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False, FormulaVersion:=xlReplaceFormula2