Find cell based on value in dropdown menu


New Member
Jun 23, 2013
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"


New Member
Jun 23, 2013
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
ActiveWindow.ScrollRow = Selection.Row
End If
End If
End Sub]

Forum statistics

Latest member

Some videos you may like

This Week's Hot Topics

  • VBA (Userform)
    Hi All, I just would like to know why my code isn't working. Here is my VBA code: [CODE=vba]Private Sub OKButton_Click() Dim i As Integer...
  • List box that changes fill color
    Hello, I have gone through so many pages trying to figure this out. I have a 2020 calendar that depending on the day needs to have a certain...
  • Remove duplicates and retain one. Cross-linked cases
    Hi all I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if...
  • VBA Copy and Paste With Duplicates
    Hello All, I'm in need of some input. My VBA skills are sub-par at best. I've assembled this code from basic research and it works but is...
  • Macro
    is it possible for a macro to run if the active cell value is different to the value above it
  • IF DATE and TIME
    I currently use this to check if date has passed but i also need to set a time on it too. Is it possible? [CODE=vba]=IF(B:B>TODAY(),"Not...