Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
i need to replace all the cells in spesific sheet that include spesific
string with other. i did the following code:(but since there are lot of cells in sheet , it is very very havy. is there a better way? ) Workbooks(Activebook).Sheets("mySheet").Select Cells.Select mystr = "xxx" For Each cell In Selection If (InStr(cell.Value, mystr) = 1) Then cell.Replace What:=mystr, Replacement:="", LookAt:=xlPart, SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, ReplaceFormat:=False End If Next cell -- Miri Tz. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Replace Hyperlink Addresses Help 'Dim OldStr As String, NewStr As String | Excel Programming | |||
How do you include a quotation as part of a string ?? | Excel Programming | |||
How do I add cells to a balance sheet which will include new sum? | Excel Discussion (Misc queries) | |||
How do I replace last numeric string from a alphanumeric string? | Excel Discussion (Misc queries) | |||
How can I include a " in my string? | Excel Programming |