Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I was hoping someone could help me with a quick question. Is there a command something like "substitute" or "replace"? I basically want a command that will replace all instances of a particular character with another character... For example, I'd like to remove all the spaces from the string "hello there world" to make it "hellothereworld". Any help would be much appreciated. Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
tanast,
try sString = Replace(sString, " ", "") regards, JohnI wrote in message ... Hi, I was hoping someone could help me with a quick question. Is there a command something like "substitute" or "replace"? I basically want a command that will replace all instances of a particular character with another character... For example, I'd like to remove all the spaces from the string "hello there world" to make it "hellothereworld". Any help would be much appreciated. Thanks |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi, you can also use "Substitute" as follows.
sString = "Hello World!" sString = Application.WorksheetFunction.Substitute(sString, " ", "") Note:Replace works on Excel 2000 and later version. -- Kind Regards Colo /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ Colo of 'The Road of The Cell Masters' :) URL:http://www.interq.or.jp/sun/puremis/...astersLink.htm /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ wrote in message ... Hi, I was hoping someone could help me with a quick question. Is there a command something like "substitute" or "replace"? I basically want a command that will replace all instances of a particular character with another character... For example, I'd like to remove all the spaces from the string "hello there world" to make it "hellothereworld". Any help would be much appreciated. Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
=SUBSTITUTE(C4,"~?#","") will this work to remove multiple string | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
change "true" and "false" to "availble" and "out of stock" | Excel Worksheet Functions | |||
HELP on "left","right","find","len","substitute" functions | Excel Discussion (Misc queries) | |||
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next | New Users to Excel |