Jakethedog422
New Member
I have created a macro to convert inconsistent addresses to a standard USPS convention. In the macro I have a column selected and I replace several words and abbreviations to standard abbreviations. Im having trouble replacing "So" when it appears as the last 2 letters of any cell in the selected column.
When I run this right now, it will change "So" anywhere in the string where the case matches.
I am a VBA newb. I am completely self taught and this is my first post, so please be kind and keep it as simple as possible. I dont know all the speak.
Any help is appreciated.
Code:
Selection.Replace What:=Right("So", 2), Replacement:="S", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _
ReplaceFormat:=False
I am a VBA newb. I am completely self taught and this is my first post, so please be kind and keep it as simple as possible. I dont know all the speak.
Any help is appreciated.