Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
How would I search each row for specific text and return custom text to the
beginning of the row the search text was found in? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Substitute actual text for Specific text and Custom text. Also, assumed the
worksheet to be 1, if not change that too. Sub SpefcText() Dim c As Range myVar = "Specific Text" Set c = Worksheets(1).Cells.Find(myVar, LookIn:=xlValues) If Not c Is Nothing Then Range("A" & c.Row) = "Custom Text" End If End Sub "Bie1997" wrote: How would I search each row for specific text and return custom text to the beginning of the row the search text was found in? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
search a row for a word and if found | Excel Worksheet Functions | |||
Replace object causes an error if search text not found | Excel Programming | |||
Return text found in a search | Excel Worksheet Functions | |||
Search column - return row found in long text string | Excel Programming | |||
Search for the word "continued", if found, delete that row + 10 rows above | Excel Programming |