Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
The following code snippet will replace TextToReplace with
ReplacementText in an Excel worksheet: Cells.Replace What:=TextToReplace, Replacement:=ReplacementText, LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=True, SearchFormat:=False, _ ReplaceFormat:=False That's easy enough. I'm a little stumped by this next one though... I want to replace the text in the cell TO THE LEFT of the cell containing the string TextToReplace with something else, which I'll call TextDescription. How do I replace text in the cell NEXT to a cell containing a particular string? Travis |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
query with formula/macro to find text in worksheet and delete it | Excel Worksheet Functions | |||
Find text - worksheet function or macro? | Excel Discussion (Misc queries) | |||
Excel: Find/Replace for Data Validation text or Worksheet Objects | Excel Discussion (Misc queries) | |||
Using Find and Replace to replace " in a macro | Excel Programming | |||
Creating a macro to find and replace text | Excel Worksheet Functions |