View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
camlad camlad is offline
external usenet poster
 
Posts: 28
Default White space removal

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