Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi, I am looking at how to remove extra spaces, and have been thinking about using Autocorrect. I have been reading another thread which suggested; For Each cell In Selection cell.Value = WorksheetFunction.Trim(cell.Text) Next What I have been using is; With Application.AutoCorrect AddReplacement "Want", "Replace" End With Works well within a loop changing any "Replace" text with "Want". Something I didn't get Substitute to do correctly within a loop. What I can't get AutoCorrect to do though is work with spaces, so: With Application.AutoCorrect AddReplacement "", " " End With Would you expect it to do so? Thanks in advance for any suggestions Neil -- StackemEvs ------------------------------------------------------------------------ StackemEvs's Profile: 1402 View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=171754 Microsoft Office Help |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How can i remove spaces? | Excel Discussion (Misc queries) | |||
how do I remove leading spaces and leave the remianing spaces w | Excel Worksheet Functions | |||
How do I remove spaces | Excel Discussion (Misc queries) | |||
Remove Spaces | Excel Programming | |||
Remove spaces | Excel Programming |