+ Reply to Thread
Results 1 to 11 of 11

Internal Hyperlinks in pivot table (Excel 2010)

  1. #1
    Registered User
    Join Date
    03-21-2014
    Location
    brussels, belgium
    MS-Off Ver
    Excel 2010
    Posts
    5

    Internal Hyperlinks in pivot table (Excel 2010)

    I have made a normal table where there are hyperlinks to other tabs of my excel file (so not to external internet websites)

    In the pivot table that is based on this table, I want to activate these hyperlinks. I have searched on the internet, but all the codes that are given are for external websites.

    Could you help me to give me advice on how to create a code to activite hyperlinks to other tabs in a pivot table?
    I created an excel to show what I want to create. So in the pivot table on the first tab, I want to have hyperlinks, if I click on "2010", I want to be directed to the tab "2010"

    Thank you in advance
    Attached Files Attached Files

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Internal Hyperlinks in pivot table (Excel 2010)

    You could try this event code

    Please Login or Register  to view this content.
    On sheet with pivot table, Right click sheet tab and add code to sheet object
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    03-21-2014
    Location
    brussels, belgium
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Internal Hyperlinks in pivot table (Excel 2010)

    Hmm, I tried it but it does not work.

    In the original table:
    * column with internal hyperlinks = C (in all the cells in this column, from C1:C150)
    * content of this column are different years (e.g. 2010, 2011, 2012, ...)

    Based on this information, what do I have to adjust in the programmcode?

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Internal Hyperlinks in pivot table (Excel 2010)

    When you say original file do you mean the example you posted? If so the pivot table is in column E not C.

    The code will work for any pivot table on the sheet. Simply click the year in the row label field for the pivot table.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    03-21-2014
    Location
    brussels, belgium
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Internal Hyperlinks in pivot table (Excel 2010)

    hi, no I posted the other excel just as an example. If I copy your code, it doesn't do anything.

    The file that I'm working on:
    So, I made a normal table, were I created hyperlinks in column C.
    On the basis of this table I made my Pivot table. So I want that the hyperlinks that are in my normal table are copied in the pivot table.
    The pivot table is placed in column E

    This is the 'fake' excel I'm working with, as you can see, the program code is there, but the hyperlinks don't work.
    Attached Files Attached Files

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: Internal Hyperlinks in pivot table (Excel 2010)

    Yes well your example is nothing like you new example, so no suprise the code does not work.

    You said click the year in the pivot table and goto the sheet. In you new example the sheet names do not match single row in your pivot table. Instead it is made up of row within row.

    try this code instead
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    03-21-2014
    Location
    brussels, belgium
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Internal Hyperlinks in pivot table (Excel 2010)

    Thank you very much, it has worked! have a nice day

  8. #8
    Registered User
    Join Date
    05-31-2017
    Location
    England
    MS-Off Ver
    2010
    Posts
    15

    Re: Internal Hyperlinks in pivot table (Excel 2010)

    Hi

    Please go directly to the next post.
    Thanks.

    This is an old thread but totally relevant to what I need to complete by Christmas.

    To check how Andy's solution works, I have downloaded helpmij's test 2 file, opened on my excel 2010, added the code by Andy to VB Microsoft Excel Objects, tab Algemeen, saved, reopened - and hoped clicking on the years in the pivot table would link to other tabs. For some reason they don't .

    What did I do wrong? I attach the modified file.

    Many thanks
    P
    Attached Files Attached Files
    Last edited by prometeusz; 12-21-2017 at 11:14 AM.

  9. #9
    Registered User
    Join Date
    05-31-2017
    Location
    England
    MS-Off Ver
    2010
    Posts
    15

    Re: Internal Hyperlinks in pivot table (Excel 2010)

    Hi

    I have tried the code on my file, and it is not working. Could it be because the source table and the pivot table are in different tabs?

    Please help.
    P
    Attached Files Attached Files

  10. #10
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Internal Hyperlinks in pivot table (Excel 2010)

    prometeusz, you are hijacking!
    Unfortunately your post does not comply with Rule 2 of our Forum RULES. Do not post a question in the thread of another member -- start your own thread.

    If you feel an existing thread is particularly relevant to your need, provide a link to the other thread in your new thread.

    Old threads are often only monitored by the original participants. New threads not only open you up to all possible participants again, they typically get faster response, too.
    Ben Van Johnson

  11. #11
    Registered User
    Join Date
    05-31-2017
    Location
    England
    MS-Off Ver
    2010
    Posts
    15

    Re: Internal Hyperlinks in pivot table (Excel 2010)

    Ah, sorry. Starting a new thread.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 12-18-2013, 07:59 PM
  2. Excel 2010 Pivot table
    By geeka in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 08-29-2013, 05:51 AM
  3. Need A Lot of Hyperlinks To Internal Worksheets
    By Homerj24 in forum Excel General
    Replies: 9
    Last Post: 03-02-2013, 03:43 PM
  4. Need A Lot of Hyperlinks To Internal Worksheets
    By Homerj24 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2013, 10:29 PM
  5. Excel 2010 Pivot table
    By DizzyMoe in forum Excel General
    Replies: 5
    Last Post: 03-28-2012, 12:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1