LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Gary''s Student
 
Posts: n/a
Default

First select a pile of cells and then run:

Sub findit()
Dim s As String
Dim r As Range
s = "purchase"
For Each r In Selection
If InStr(1, r, s) Then
Cells(r.Row, 1) = "x"
End If
Next
End Sub
--
Gary''s Student


"TCL" wrote:

Anyone have a script to
1. search an entire worksheet (say A1 through AZ2500) for a specific text
string (like 'purchase') and
2. if the string is found anywhere in the row insert an 'x' in column 'A'
(of the IDed row).


Thanks

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Insert a Seperator into a number string. DraCo Excel Discussion (Misc queries) 3 August 22nd 05 02:24 PM
Search string with multiple criteria fLiPMoD£ Excel Worksheet Functions 2 May 5th 05 08:02 PM
Insert characters in a text string jamae918 Excel Worksheet Functions 1 March 28th 05 10:04 PM
Read Text File into Excel Using VBA Willie T Excel Discussion (Misc queries) 13 January 8th 05 12:37 AM
Q: search in string JIM.H. Excel Discussion (Misc queries) 5 January 5th 05 10:24 PM


All times are GMT +1. The time now is 05:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"