Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default removing nbsp character

Hi, I have a table which has been imported from a web query, which has a
column of ID numbers contained in it. Some of these (not all) are not
being picked up as numbers by Excel, and the reason appears to be the
inclusion of a leading nonbreaking space character. There is a way to
clean these up by using the trim and substitute functions in a separate
column, but as I will be refreshing this query reasonably frequently and
the size of the range will change each time, I would like to come up
with a VBA solution to automate removing the leading nonbreaking space.
Any assistance would be welcomed.

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default removing nbsp character

See this:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

I also do a lot of stuff from the web and have to deal with all the junk
from html. This macro is a real time saver. I put a button on one of my
toolbars and attached that macro to the button.

Biff

"Geoff Ness" wrote in message
...
Hi, I have a table which has been imported from a web query, which has a
column of ID numbers contained in it. Some of these (not all) are not
being picked up as numbers by Excel, and the reason appears to be the
inclusion of a leading nonbreaking space character. There is a way to
clean these up by using the trim and substitute functions in a separate
column, but as I will be refreshing this query reasonably frequently and
the size of the range will change each time, I would like to come up with
a VBA solution to automate removing the leading nonbreaking space. Any
assistance would be welcomed.

Thanks in advance



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 299
Default removing nbsp character

Try this

http://www.mvps.org/dmcritchie/excel/join.htm#trimall
--


Regards,

Peo Sjoblom

Excel 95 - Excel 2007
Northwest Excel Solutions
www.nwexcelsolutions.com
(Remove ^^ from email)


"Geoff Ness" wrote in message
...
Hi, I have a table which has been imported from a web query, which has a
column of ID numbers contained in it. Some of these (not all) are not
being picked up as numbers by Excel, and the reason appears to be the
inclusion of a leading nonbreaking space character. There is a way to
clean these up by using the trim and substitute functions in a separate
column, but as I will be refreshing this query reasonably frequently and
the size of the range will change each time, I would like to come up with
a VBA solution to automate removing the leading nonbreaking space. Any
assistance would be welcomed.

Thanks in advance



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default removing nbsp character

Thanks Biff! :D

This was exactly what I needed. Great site too.

Cheers
Geoff

T. Valko wrote:
See this:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

I also do a lot of stuff from the web and have to deal with all the junk
from html. This macro is a real time saver. I put a button on one of my
toolbars and attached that macro to the button.

Biff

"Geoff Ness" wrote in message
...
Hi, I have a table which has been imported from a web query, which has a
column of ID numbers contained in it. Some of these (not all) are not
being picked up as numbers by Excel, and the reason appears to be the
inclusion of a leading nonbreaking space character. There is a way to
clean these up by using the trim and substitute functions in a separate
column, but as I will be refreshing this query reasonably frequently and
the size of the range will change each time, I would like to come up with
a VBA solution to automate removing the leading nonbreaking space. Any
assistance would be welcomed.

Thanks in advance



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11
Default removing nbsp character

I think this is proof that great minds think alike ;)

Thanks Peo

Peo Sjoblom wrote:
Try this

http://www.mvps.org/dmcritchie/excel/join.htm#trimall



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default removing nbsp character

You're welcome. Thanks for the feedback! And thanks to David M. for posting
that macro!

Biff

"Geoff Ness" wrote in message
...
Thanks Biff! :D

This was exactly what I needed. Great site too.

Cheers
Geoff

T. Valko wrote:
See this:

http://www.mvps.org/dmcritchie/excel/join.htm#trimall

I also do a lot of stuff from the web and have to deal with all the junk
from html. This macro is a real time saver. I put a button on one of my
toolbars and attached that macro to the button.

Biff

"Geoff Ness" wrote in message
...
Hi, I have a table which has been imported from a web query, which has a
column of ID numbers contained in it. Some of these (not all) are not
being picked up as numbers by Excel, and the reason appears to be the
inclusion of a leading nonbreaking space character. There is a way to
clean these up by using the trim and substitute functions in a separate
column, but as I will be refreshing this query reasonably frequently and
the size of the range will change each time, I would like to come up
with a VBA solution to automate removing the leading nonbreaking space.
Any assistance would be welcomed.

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
Removing last character in a cell Megadrone Excel Worksheet Functions 0 November 30th 06 06:51 PM
Removing last character in a cell Megadrone Excel Worksheet Functions 0 November 30th 06 06:23 PM
Cleaning up data -- any way to globally fix this?? The Moose Excel Discussion (Misc queries) 3 November 26th 06 02:50 PM
Removing last character of cell mira Excel Discussion (Misc queries) 4 July 27th 05 07:46 PM
Removing ' character from cells Don Excel Discussion (Misc queries) 5 December 21st 04 05:41 PM


All times are GMT +1. The time now is 11:36 AM.

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

About Us

"It's about Microsoft Excel"