Dropdown navigation menu

bruntonomo

New Member
Joined
Jul 29, 2018
Messages
48
I am looking to create a drop down navigation menu in Excel, and found this Youtube video that is very close to doing what I want it to do. The only thing that I want to change from the solution in this video is that it doesn't require a Go button. I want the user to simply be able to choose an option from from the drop down list and it delivers them to an anchor link (cell) inside the Excel document. If anyone can tell me how to do this, I would be insanely grateful.
 

Some videos you may like

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

John_w

MrExcel MVP
Joined
Oct 15, 2007
Messages
6,424
You need everything except the =HYPERLINK formula in the Go cell.

Right-click the tab of the sheet containing the data validation dropdown cell (for example D3), click View Code and insert this code:

Code:
Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Address = "$D$3" Then
        Application.Goto Reference:=Target.Value
    End If
    
End Sub
 

bruntonomo

New Member
Joined
Jul 29, 2018
Messages
48
That worked! Thank you so much! That's going to make things much easier to work with.

The Name Manger in Excel will not accept spaces. I'm fine with the names of cells not having spaces, but I would like the options in the drop down to have spaces as needed. Is there a way we can mask the options so that underscores display as spaces?
 

John_w

MrExcel MVP
Joined
Oct 15, 2007
Messages
6,424
With spaces in the dropdown values, change the code to:
Code:
        Application.Goto Reference:=Replace(Target.Value, " ", "")
and it will go to the equivalent defined name without spaces.

Or if your defined names have underscores:
Code:
        Application.Goto Reference:=Replace(Target.Value, " ", "_")
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,109,050
Messages
5,526,494
Members
409,704
Latest member
saialkesh

This Week's Hot Topics

Top