Find cell based on value in dropdown menu

Nilelator

New Member
Joined
Jun 23, 2013
Messages
14
i have a spread sheet that has 2070 rows. would like to have a drop down menu based on a condensed list (107) that when selected will auto find the first row of the condensed list. i saw that someone had posted a VBA that would do what i am after but now i can't find it.
1. the condensed list is on sheet 'code #' column BT1:BT106
2. the drop down list is on sheet 'LABOR HRS BY DATE' A1
3. and the search column is A16:A2070

I cannot reduce the condensed list any further and cannot reduce the number of rows either. and the columns go out to "BGO"
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
found my answer in an older post, thank you

[Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Dim vFIND As Range
If Not Intersect(Target, Range("A1")) Is Nothing Then
If Range("A1") = "" Then Exit Sub
On Error Resume Next
Set vFIND = Range("A14:A2069").Find(Range("A1").Value, LookIn:=xlValues, LookAt:=xlWhole)
If Not vFind Is Nothing Then
vFIND.Select
ActiveWindow.ScrollRow = Selection.Row
End If
End If
End Sub]
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,325
Members
452,635
Latest member
laura12345

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