View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
dougmcc1 dougmcc1 is offline
external usenet poster
 
Posts: 1
Default Removing special characters and extra white space

How do you remove the white space between words in a macro? I want t
remove any spaces greater than 1 and replace them with 1 space. I als
would like to know how to remove question marks and asterisks (I'
removing all special characters but those two in peticular ar
tricky).

I came across the code() function and realized that the only codes
need are 65-90 (A-Z), 97-122 (a-z), 48-57 (0-9), and 32 (space). So I'
like to remove any codes that arent equal to any of those numbers.

Thanks

--
Message posted from http://www.ExcelForum.com