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?
- Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
- More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
- Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
- Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
- Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
- Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
- More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.
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://.
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.· 9 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.· 10 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.· 2 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.· 2 years agoWhat about Hyperlinking documents within the pivot table?
To post as a guest, your comment is unpublished.· 2 years agoThis will make it so it works across all workbooks. Enter this into "ThisWorkbook" rather than individual sheets.
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
' MsgBox Sh.Name
' MsgBox Target.Address
If Target.Cells.Count = 1 Then
On Error Resume Next
ActiveWorkbook.FollowHyperlink Address:=CStr(Target.Value), NewWindow:=True
On Error GoTo 0
To post as a guest, your comment is unpublished.· 2 years agoWhy is the hyperlink not working? Please help!! https://www.dropbox.com/s/zyp8e2g0sqygweb/zero%20test%202.xlsm?dl=0
I have tried in a number of ways, tab and worksheet specific - and to no avail..