View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
RGreen RGreen is offline
external usenet poster
 
Posts: 9
Default Do Loop or use End iF for search string

Hey Jacob, this did the trick

Stefi, haven't tried it yet, but thanks for the posting.

Rick.

"Jacob Skaria" wrote:

Try the below macro

Sub Macro()
Dim varFound As Variant
Set varFound = Columns(ActiveCell.Column).Find("Stop")
If Not varfound Is Nothing Then varfound.Offset(-1, 0).Activate
End Sub


If this post helps click Yes
---------------
Jacob Skaria


"RGreen" wrote:

50 colums (BI:DC) 1500 rows (500 to 2000)
On the cs772nd row, cs797th row, cs822nd row and so on, in each column I
have the word "stop".
The data is already stored or I am storing data into these colums:

Depending on where I am storing data, I would like to search that column for
the word stop, and I want my active cell to be just above the word stop.

SO If I am in CU775 (Activecell) than I would like to search that column CU
for the word stop down to row 797 and my active cell would be CU796.

What would be the best way for me to approach this with not too much coding
as I need to accomodate this to another marco already in place.

Thanks,
Rick