I need to add white space before and after @ ,If @ has adjacent character (before it or after).
e.g with this strings new@test , new@ test , new @test the expected is new @ test.
e.g2 with @test the expected is @ test
e.g3 with new@ the expected is new @
the below code always replace @ regardless it has adjacent character or not.
thanks for your help.
Sub Macro1()
ActiveCell.Replace What:="@", Replacement:=" @ ", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub


