View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Gary Keramidas[_3_] Gary Keramidas[_3_] is offline
external usenet poster
 
Posts: 72
Default delete all spaces in range

if i understand correctly, you gave yourself the answer

For Each c In Range("apples")

--


Gary Keramidas
Excel 2003


"J.W. Aldridge" wrote in message
...

need to change this to fit all cells in named range "apples".

Sub NoSpaces()
Dim c As Range

For Each c In Selection.Cells
c = Replace(c, " ", "")
Next
End Sub