How to quickly list all hyperlinks in Excel?



Hyperlinks enable easy access to external resources such as websites, documents, emails, or even specific locations within other worksheets or workbooks. By simply clicking on a hyperlink placed within an Excel cell or object (like shape), users can instantly open relevant files without wasting time manually searching their computer directories or browser bookmarks. This quick access ensures seamless integration with other applications while maintaining workflow efficiency.

While many are familiar with hyperlinks in web pages, they can bring tremendous benefits when used within an Excel workbook too.

Quickly Restoring all Hyperlinks Using "Replace Option"

Step 1

To expedite the process of listing hyperlinks, Microsoft Excel offers powerful built-in options like the "replace". Open the desired worksheet.

Alternative method using Excel formulas to display hyperlink addresses directly from cells

Step 2

In the Home tab, move to the "Editing ribbon" and select "Replace" option. In the Find and Replace window, select the "Format" option from the "Find What" tab. Here, select the "Choose Format From cell" option.

Excel worksheet showing a dataset containing multiple hyperlinks

Step 3

Then it allows you to select the cells with hyperlinks. After selecting the hyperlinks, the "Preview" option will be turned in blue,

Formula output showing clickable links and their addresses in separate cells

Step 4

And click the "Find all" option to list all the hyperlinks.

Final sheet with both hyperlink text and URLs clearly displayed

Quickly Restoring all Hyperlinks Using "VBA Macros"

Step 1

Visual Basic for Applications (VBA) allows automation in Excel by writing custom macros tailored specifically to our needs. Press Alt + F11 keys together on the keyboard; this opens up Microsoft Visual Basic for Applications editor.

Close-up of Excel formula =HYPERLINK(A1) demonstrating how to retrieve the link address

Step 2

Click on "Insert" from the toolbar menu and choose "Module."

Excel sheet after macro execution, showing hyperlink addresses extracted and listed in adjacent cells

Step 3

Then, enter the below code inside the module.

Sub ListHyperlinks()
   Dim HLink As Hyperlink
   For Each HLink In ActiveSheet.Hyperlinks
      MsgBox HLink.Address
   Next HLink
End Sub
Running the VBA macro via the Developer tab's ?Macros' option to execute the hyperlink extraction

Step 4

Press Alt+F8 in the Excel sheet to open the "Macro" and click run to display the list of hyperlinks one by one.

VBA module showing code that loops through cells to extract hyperlink addresses

Step 5

Separate popup window will be shown one by one with the hyperlinks.

VBA editor open with a module ready for hyperlink extraction code Screenshot of excel's Developer tab, highlighting the ?Visual Basic' button to open the VBA editor Visual of the ?Developer' tab being enabled from Excel Options

Conclusion

Locating all hyperlinks within an extensive spreadsheet may seem like searching for a needle in a haystack. However, with these techniques at hand?whether through utilizing built-in functions combined with formulas or embracing advanced solutions such as VBA macros or online add-ins?we can effortlessly unravel this hidden information in record time.

Updated on: 2023-12-22T11:50:15+05:30

4K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements