Macro Assistance with a Drop Down Listy

Skedwards323

New Member
Joined
Dec 8, 2020
Messages
1
Office Version
  1. 2013
Platform
  1. Windows
Hello - I would like to develop a "Jump to" macro button that jumps to the appropriate section of the worksheet to display the data. The corresponding data are listed in column A of the worksheet in different cells (ranging from cell A6 to cell A347). I have tried code from other forums but nothing seems to provide the "jump to" functionality I am looking for. Any suggestions?
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
I typically name a jump point (for example, "jumphere") and then you can use a simple macro to go there.

Sub Macro1()
Application.Goto Reference:="jumphere"
End Sub
 
Upvote 0
then use this VBA to execute various macros depending on the value of the dropdown list (assuming the dropdown is in Cell A2):
Private Sub jumpcell(ByVal Target As Range)
If Not Intersect(Target, Range("A2")) Is Nothing Then
Select Case Range("A2")
Case "dropdown list value1": Macro 1
Case "dropdown list value2": Macro 2
End Select
End If
End Sub
 
Upvote 0
I made one error on the VBA above...the first line should read:
Private Sub Worksheet_Change(ByVal Target As Range)
so that it executes whenever the worksheet is updated.
 
Upvote 0

Forum statistics

Threads
1,223,948
Messages
6,175,580
Members
452,653
Latest member
craigje92

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