White space removal
Thanks Gord and p45cal
I had spotted Trim and not used it - I was trying to use the ^w which
replaces multiple spaces used in Word, inc macros..
Camlad
"camlad" wrote in message
...
I need to remove white space from a range so I recorded the following which
did not work.
How can I remove all spaces in a range?
Range("A1:A535").Select
Selection.Replace What:="^w", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
Camlad
|