Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm looking for a code which performs the following : delete a string from another string : example : tomorrow --- the m should be removed --- output : toorrow Thanks |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
On Sun, 11 Sep 2005 10:22:56 GMT, "M" wrote:
Hi, I'm looking for a code which performs the following : delete a string from another string : example : tomorrow --- the m should be removed --- output : toorrow Thanks Look at HELP for the SUBSTITUTE worksheet function. =SUBSTITUTE("tomorrow","m","") will remove all of the "m"'s. --ron |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Public Sub ReplaceText()
Dim sVal As String sVal = ActiveCell.Value sVal = Replace(sVal, "m", "", 1, 1, vbBinaryCompare) ActiveCell.Value = sVal End Sub Note 'vbBinaryCompare' makes it casesensitive "M" wrote in message ... Hi, I'm looking for a code which performs the following : delete a string from another string : example : tomorrow --- the m should be removed --- output : toorrow Thanks |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Edit REplace String | Excel Worksheet Functions | |||
How do I replace last numeric string from a alphanumeric string? | Excel Discussion (Misc queries) | |||
Find/Replace String | Excel Programming | |||
replace a string in the worksheet | Excel Programming | |||
Substring to replace string | Excel Programming |