How to create clickable hyperlinks in pivot table?
You can easily click a hyperlink to link to its webpage in a worksheet, but if you create a pivot table which contains hyperlinks, the hyperlinks will not be clickable. Do you have any good ideas to solve this problem in Excel?
Excel Productivity Tools
Office Tab: Bring powerful tabs to Office (include Excel), just like Chrome, Safari, Firefox and Internet Explorer. Save you half the time, and reduce thousands of mouse clicks for you. 30-day Unlimited Free Trial
Kutools for Excel: Save 70% of your time and solve 80% Excel problems for you. 300+ advanced features designed for 1500+ work scenario, make Excel much easy and increase productivity immediately. 60-day Unlimited Free Trial
The hyperlinks don’t work in pivot table by default, but fortunately, you can create a VBA code to make the hyperlinks be clickable in pivot table.
1. Hold down the ALT + F11 keys, and it opens the Microsoft Visual Basic for Applications window.
2. Then choose your used worksheet from the left Project Explorer pane, double click it to open a Module, and then copy and paste following VBA code into the blank Module:
VBA code: Create clickable hyperlinks in pivot table
Private Sub Worksheet_SelectionChange(ByVal Target As Range) 'Update 20140814 If Target.Cells.Count <> 1 Then Exit Sub On Error Resume Next Application.ActiveWorkbook.FollowHyperlink Address:=CStr(Target.Value), NewWindow:=True End Sub
3. Then save and close this code, go back to your worksheet, and now, when you click the hyperlink in your pivot table, the hyperlink will be activated and link to its webpage.
Note: This code is only available for the webpage links which begin with Http://.
Excel Productivity Tools
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
To post as a guest, your comment is unpublished.· 2 months agoMuchas gracias. A mi me ha funcionado con enlaces a peliculas de mi disco duro, que tenia una base de datos de mis pelis. Asi que no solo funciona con http... o al menos a mi me ha servido.
To post as a guest, your comment is unpublished.· 3 months agoI tried the oce but it doesn't work. I someone willing to take a look at my document ?
To post as a guest, your comment is unpublished.· 1 years agoI have two types of data in my pivot table that would use a hyperlink: 1. a hyperlink to a document located on a shared drive. 2. an email address that I would like to use the mailto link to open an email. The macro above works for the document, but I can't figure out how to make it work for the email. Any ideas?
To post as a guest, your comment is unpublished.· 1 years agoThis works very well, but I'm trying to figure out how to have a shorter friendly name to click on rather than a long URL. I have 3 columns of different links and they all run together visually. A symbol or even a friendly name based on a previous cell in that row would be excellent.
To post as a guest, your comment is unpublished.· 1 years agoWhat about Hyperlinking documents within the pivot table?