Excel Search Assistance

hsmit007

New Member
Joined
Feb 28, 2017
Messages
12
I have 600 rows that have unique names. I've created a search function that highlights the name from the search box, but I'm seeking assistance for excel to go to the highlighted cell row. Currently, I have to scroll down to the highlighted row from the search. Any assistance is appreciated.
 

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college
Can you please post your existing code? The way we get to the desired cell/row is dependent on how you are currently finding it.
 
Upvote 0
I have 600 rows that have unique names. I've created a search function that highlights the name from the search box, but I'm seeking assistance for excel to go to the highlighted cell row. Currently, I have to scroll down to the highlighted row from the search. Any assistance is appreciated.

The search code ="IF(ISBLANK(Search_box),0,SEARCH(Search_box,$A6:$A608))" The code is in the conditional formatting for the cell range.
 
Upvote 0
We can't use a formula to tell Excel to go to a specified range (I had assumed you did this through VBA). Are you okay to use a VBA solution for this?

Try:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range
If Not Intersect(Target, Range("Search_Box")) Is Nothing Then
    With Range("A:A")
        Set rng = .Find(Target.Value, LookIn:=xlValues, lookat:=xlPart)
        If Not rng Is Nothing Then
            'value found
            rng.Select
        End If
    End With
End If
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,046
Messages
6,122,855
Members
449,096
Latest member
Erald

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top