Please Note: This article is written for users of the following Microsoft Excel versions: 2007 and 2010. If you are using an earlier version (Excel 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Excel, click here: Drop-Down List of Hyperlinks.

Drop-Down List of Hyperlinks

Written by Allen Wyatt (last updated July 13, 2023)
This tip applies to Excel 2007 and 2010


8

Greg knows that he can use data validation to create a drop-down list of choices for a particular cell. (How to do this has been covered in other ExcelTips.) He wonders if it possible to create a drop-down list of hyperlinks and, further, have those hyperlinks remain "hot" when they are selected.

The short answer is no, you can't do that directly. You can, however, make whatever you select in the drop-down list become active. This behavior is a bit kludgy in Excel, however. Follow these general steps:

  1. Select a URL from your drop-down list. (The list created using data validation.) The URL now appears in the cell.
  2. Double-click the URL that appears in the cell. Excel lets you start to edit the hyperlink.
  3. Press Enter. The URL now becomes active ("hot").
  4. Click the URL one more time to follow to that link.

As you can tell, these steps are a bit awkward, and they become more so if you want to select a different URL from the drop-down list. (You must first right-click and remove the hyperlink and then do the above steps again.)

Perhaps a better solution is to use a workaround that relies on the HYPERLINK function to refer to whatever is selected in the drop-down list. For instance, if you have your data validation drop-down list in cell A1, then you might put the following formula in cell B1:

=HYPERLINK(A1, "Goto Link")

The second parameter in the function is optional; it provides the text you want displayed in the cell. (If you don't provide the second parameter, then the contents of A1 are repeated in B1—something you may not want to see.) When someone picks an option in the drop-down list, the link in cell B1 becomes active and will link to whatever was selected in A1.

ExcelTips is your source for cost-effective Microsoft Excel training. This tip (11213) applies to Microsoft Excel 2007 and 2010. You can find a version of this tip for the older menu interface of Excel here: Drop-Down List of Hyperlinks.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Applying the All Caps Format

Want your text to always appear in upper-case, regardless of how you type it? Word allows you to add formatting to your ...

Discover More

Merging Custom Dictionaries

It is possible to develop a custom dictionary on your computer that reflects the types of documents with which you work ...

Discover More

Updating an Entire TOC from a Macro

The TOC (Table of Contents) is generated by a field. This field may be updated in a macro using a single command line.

Discover More

Solve Real Business Problems Master business modeling and analysis techniques with Excel and transform data into bottom-line results. This hands-on, scenario-focused guide shows you how to use the latest Excel tools to integrate data from multiple tables. Check out Microsoft Excel 2013 Data Analysis and Business Modeling today!

More ExcelTips (ribbon)

Extracting URLs from Hyperlinked Images

When copying information from the Internet to an Excel workbook, you may want to get rid of graphics but keep any ...

Discover More

Extracting Hyperlink Information

In Excel, a hyperlink consists of two parts: the text displayed for the link and the target of the link. You can use a ...

Discover More

Hyperlinks No Longer Work in a Workbook

Hyperlinks can be a great timesaver and very convenient. Unless, of course, if they don't work as you expect. This tip ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is three less than 3?

2020-03-09 20:18:18

Andrew

Hello, I have created 10 different hyperlinks in excel and each hyperlink references a word document. I am attempting to create a dropdown list of these hyperlinks so that when I choose the item from the dropdown, I can double click on it and it will go directly to the word document.

When I create the drop down list (using data validation) the drop down list appears but all the items are no longer hyperlinked to the word document originally referenced.

Any help would be greatly appreciated


2017-03-07 13:09:41

Dick Harkins

Need to add one line of code at the beginning of JaSal's macro. That line is to clear the previous entry in cell "HyperLink_Selected".

His code will now look like:

Sub Whatever you name it()

Call Range("HyperLink_Selected").ClearContents
HyperLink_Index = Range("HyperLink_Selected")
If Range("HyperLinks_Table").Offset(HyperLink_Index - 1, 0).Hyperlinks(1).Name <> "" Then
Range("HyperLinks_Table").Offset(HyperLink_Index - 1, 0).Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True

End If

That's not all!

Next

In Format Control

enter the Input Range
enter the Cell Link
enter number of Drop Down lines

Now .. you're good to go

Best

Dick


2016-05-19 10:57:46

JaSal

Well it works, although as already mentioned, visualisation would have been helpful.
Anyway, thanks for the workaround.

The data validation dropdown list is positioned in cell A1 and a

=HYPERLINK(A1;"Goto Link")

in cell A2. The crucial point is to fill the list with the hyperlink_address part of the HYPERLINK-Function.
So the source of the list: in my case an entry looked like this:

[Test.xlsm]Sheet1!A100

This part just replaces the A1 in

=HYPERLINK(A1;"Goto Link")

to form

=Hyperlink([Test.xlsm]Sheet1!A100;"Goto Link")

This only works using the function. If you insert a hyperlink over the menu it won´t work.

Hope that helps.

Good Luck


2016-02-11 20:43:26

anonymous

including screenshots would be more helpful :)


2015-08-13 21:47:38

Neil Raine

The problem can be easily solved with a bit of VBA and using a drop down box. To set up:

1. Create a named range (n rows, 1 column) called "HyperLinks_Table" than contains the list of hyperlinks.

2. Create a named range (1 cell only) called "HyperLink_Selected". Leave this cell blank.

3. Add a ComboBox form control to your spreadsheet. Format the control (right click) to have the following values:
Input Range: HyperLinks_Table
Cell Link: HyperLink_Selected

4. Right click the ComboBox control and select the "Assign Macro" option, click new to create a new macro. Add the following lines to the macro:

HyperLink_Index = Range("HyperLink_Selected")
If Range("HyperLinks_Table").Offset(HyperLink_Index - 1, 0).Hyperlinks(1).Name <> "" Then
Range("HyperLinks_Table").Offset(HyperLink_Index - 1, 0).Hyperlinks(1).Follow NewWindow:=False, AddHistory:=True
End If

Now when you change the value in the ComboBox the hyperlink will be opened.


2015-08-13 21:37:55

robert

Mine did not work either !! Please explain..........


2015-06-24 14:54:43

Bob

I tried this but it didn't work. I really need to be able to make a drop down list that will link to elsewhere in the same worksheet. I have 2 drop down lists and both are needed for my purposes. I concatenate the results to another cell so the full text is in one cell, Then I want to have a "go" link that will take the user to the place in the document they just selected with the 2 drop downs. Any help would be appreciated.


2015-01-21 17:59:44

Bill McNamara

I have an Excel 2010 file that has a drop down menu with options in the drop down, to sort a-z and another line to sort z-a. It also has a search field. It also has a list that you can put a check-mark next to, so you can print different criteria from that list. I don't know if I am explaining myself very well. I tried to copy and paste a view of it in this block, but the block will not allow me to do that.


This Site

Got a version of Excel that uses the ribbon interface (Excel 2007 or later)? This site is for you! If you use an earlier version of Excel, visit our ExcelTips site focusing on the menu interface.

Newest Tips
Subscribe

FREE SERVICE: Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.