View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Gary Keramidas[_4_] Gary Keramidas[_4_] is offline
external usenet poster
 
Posts: 226
Default Macro to remove blanks in text

here's another way

Sub RemoveSpaces()

Worksheets("Sheet3").Range("c11:c500").Replace _
What:=" ", Replacement:="", _
SearchOrder:=xlByColumns, MatchCase:=True

End Sub

--


Gary


"herve" wrote in
message ...

Hi all,
I have text in cell C11 to C5000.
Do anyone know a macro that will remove the blank in the text?
Ta


--
herve
------------------------------------------------------------------------
herve's Profile:
http://www.excelforum.com/member.php...o&userid=27314
View this thread: http://www.excelforum.com/showthread...hreadid=473029