Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a number of cells that end with ;Color=12342. For example - Alan;Color=12342 Jane;Color=12342 Clare;Color=12342 Ian;Color=12342 I want to replace ";Color=12342" with "". So that the 4 cells contain - Alan Jane Clare Ian The following code doesn't work (replaces nothing) - range.Replace(";Color=12342", "", Excel.XlLookAt.xlPart, Excel.XlSearchOrder.xlByRows, false, false, false, true); And this line of code inserts a space at the end of each cell, which I don't want - range.Replace(";Color=12342", " ", Excel.XlLookAt.xlPart, Excel.XlSearchOrder.xlByRows, false, false, false, true); Why does the first line of code above not work? Thanks, Barry. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Search/Match/Find ANY part of string to ANY part of Cell Value | Excel Worksheet Functions | |||
Find and replace part of a text string | Excel Discussion (Misc queries) | |||
Long character string - need to remove part of it | Excel Programming | |||
remove last part of string | Excel Programming | |||
Remove part of string | Excel Programming |