Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default removing extra spaces in excel

I have a page of email addresses that I send out in bulk.
Occasionally, when I copy and past the addresses into outlook, I get
an error. The error, I found out, is becasue there is an extra space
(most likely at the end) of the address. I have done searches using
the "find" command but for what ever reason it doesn't seem to find
the spaces all of the time.

Is there a way to search and even remove the extra spaces?

Thanks in advance.
  #2   Report Post  
Posted to microsoft.public.excel.programming
XP XP is offline
external usenet poster
 
Posts: 389
Default removing extra spaces in excel

Hi,

Check out the "Trim" function...you can use it as a formula in the sheet
itself and copy down, then paste values or you can use it in code...

=Trim(A5)

Hope this helps.

"Seemore" wrote:

I have a page of email addresses that I send out in bulk.
Occasionally, when I copy and past the addresses into outlook, I get
an error. The error, I found out, is becasue there is an extra space
(most likely at the end) of the address. I have done searches using
the "find" command but for what ever reason it doesn't seem to find
the spaces all of the time.

Is there a way to search and even remove the extra spaces?

Thanks in advance.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Eliminating extra spaces in mail merge with Excel/Publisher oldtimer43 Excel Discussion (Misc queries) 2 December 23rd 08 04:05 PM
removing extra spaces BVZ Excel Discussion (Misc queries) 2 October 29th 08 07:21 PM
Removing 2 extra spaces in front of dates in imported excel doc Hannah Excel Discussion (Misc queries) 4 April 12th 06 07:37 PM
eliminating extra spaces in Excel cells Laura1 Excel Discussion (Misc queries) 4 March 17th 06 05:34 PM
Removing random extra spaces jermsalerms Excel Discussion (Misc queries) 3 January 18th 06 04:40 PM


All times are GMT +1. The time now is 10:33 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"