View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default How to remove a space

Copying from web pages can be a problem. Sometimes what looks like a space
character isn't really a space character--it's one of those HTML non-breaking
spaces.

David McRitchie has a macro that cleans up this kind of stuff:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall
(look for "Sub Trimall()")

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

Kevin wrote:

Dear NG:

I copied and pasted my E-Z Pass statement into Excel as HTML.

I sorted the data by tag number.

If I highlight the cells with the "toll charges" for a specific tag number I
SHOULD get the total toll charges in the lower status bar.

Instead I get nothing.

Apparently there is a blank space in front of each entry in the toll
charges column. If I manually remove the blank space the charges
total up in the status bar as they should.

Is there any way to remove the space in front of each entry in the toll
column other than manually removing them?

I have a feeling I'm missing something very simple here.

Thanks in advance for any suggestions.

-Kevin


--

Dave Peterson