Go to specific row based on data validation list

maxzoran

Board Regular
Joined
Feb 1, 2008
Messages
63
I post this in the original thread, but it looks to be buried.
http://www.mrexcel.com/forum/showthread.php?t=588618&highlight=jump+row

I am having trouble making this work in my sheet. My data validation list is in cell G2 and my named ranged is stg_select (cells C1901:C1950). The corresponding rows to jump to are B1901:B1950. These are both in the same sheet as the validation list. Hence, ActiveSheet after the vFIND=. It doesn't error out, it just doesn't do anything. Here's my code (pasted into the sheet code):

Code:
Private Sub Worksheet_Change(ByVal Target As Range)
Dim vFIND As Range

If Not Intersect(Target, Range("G2")) Is Nothing Then
    If Range("G2") = "" Then Exit Sub
    On Error Resume Next
    Set vFIND = ActiveSheet.Range("stg_select").Find(Range("G2").Value, LookIn:=xlValues, LookAt:=xlWhole)
    If Not vFIND Is Nothing Then Range("A" & vFIND.Offset(, -1).Value).Select
    ActiveWindow.ScrollRow = Selection.Row
End If

End Sub
What am I missing? Thanks in advance for the help!
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,225,071
Messages
6,182,679
Members
453,132
Latest member
nsnodgrass73

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