Jumping within a sheet, maybe from a list, drop down???

asallwey

Board Regular
Joined
Jul 26, 2005
Messages
101
I have a spreadsheet with multiple sheets. On one sheet, call it sheet1, I have categories in ColA in alphabetical order, each of which have any number of data lines using ColA-Q. New categories are occasionally added, in alpha order.

Currently to find a category one has to scroll down the sheet.

I would like to have something like a category drop down list at the top that a user can select from and jump to that section of the sheet. I've used drop downs, hyperlinks, and range names in other places, but am stumped for a solution in this application. (It would have simple years ago when I worked in databases... .)

Any suggestions?

Alex
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Why not use the autofilter?


1630094070968.png
 
Upvote 0
Ok, but not really what I'm looking for. Still requires the user to be able to spell out enough if there are similar starting categories. Be better if there is a list type.
 
Upvote 0
I've found a solution to my question that seems to work ok. I inserted a worksheet_change code sub focused on the data validation list box.

Private Sub Worksheet_Change(ByVal Target As Range)
Dim V8 As Range, v As String, r As Range
Set A3 = Range("A3")
If Intersect(Target, A3) Is Nothing Then Exit Sub
v = A3.Value
Set r = Range("S:S").Find(what:=v, After:=Range("S1"))
' column S has the category list
Application.Goto Range("A" & r.Offset(0, 1).Value)
End Sub

I tried a Forms list box and it didn't work. So I now can have a selection box, and when a category choice is made it jumps to it. Right now it seems to be at the bottom of the screen, but I can live with that. I will also have to update line number for categories if any changes are made. But changes are not frequent, and are several at one time, so manageable.

If anyone has suggestions on how to make the active cell at the top of the screen I would appreciate it. I will mark this topic as solved in a day if no ideas.

Alex
 
Upvote 0
You can use:

VBA Code:
ActiveWindow.SmallScroll Down:=ActiveCell.Row-ActiveWindow.VisibleRange.Row
 
Upvote 0
Solution

Forum statistics

Threads
1,214,965
Messages
6,122,499
Members
449,089
Latest member
Raviguru

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