macro

C

chi

need help!

please help me create a macro that will delete all double
space and reatin single space only on the entire sheet.

Thank you very much.

more power!
 
P

Paul B

chi, no need for a macro, just use edit, replace, replace what ,put in two
spaces, replace with , put in one space, replace all
--
Paul B
Always backup your data before trying something new
Please post any response to the newsgroups so others can benefit from it
Feedback on answers is always appreciated!
Using Excel 2000 & 2003
** remove news from my email address to reply by email **
 
C

chi

How about the case in first space of a column?
e.g.
column 1
Annaliza
Joshua
Margaret
Anne
Howard
Richard
 
M

Myrna Larson

For that you need a "helper" column with a formula like

=TRIM(A1)

that will remove both leading and trailing spaces. Once you've put the
formulas in another column, you can Edit/Copy the column of formulas, then
Edit/Paste Special and select the values option. Then you can delete the
column containing the original text.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top