Solved

Make click on Excel chart and automatically a new WorkBook is open with the chart's pivot table

Posted on 2014-01-23
5
388 Views
Last Modified: 2014-01-25
I have a excel file in which I have 5 pivots tables and its charts.

Pivot tables are in sheet2 and charts are in sheet1.

What I want to do is to make click on one chart and then automatically the chart's pivot table is shown in a new workbook. A new workbook with only one pivot table.
0
Comment
Question by:acunaara
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 30

Expert Comment

by:gowflow
ID: 39805761
Could you post this workbook that have the charts linked to the pivot ?
gowflow
0
 

Author Comment

by:acunaara
ID: 39807203
The info is confidential but I made an example of what I want to do.

Please see attach file
Pivot-and-Chart.xlsm
0
 
LVL 30

Accepted Solution

by:
gowflow earned 500 total points
ID: 39807911
Is this what your looking for ??

I created 2 other charts but not pivot
I removed the link you had on the chart to point to a macro and instead created a button htat hold a code that will call a macro in the module.

Please test it and check the result. It will only work on Pivot as this is what you requested.

Let me know your comments.
gowflow
Pivot-and-Chart-V01.xlsm
0
 

Author Closing Comment

by:acunaara
ID: 39808056
Thank you dude

This is very useful!!
0
 

Author Comment

by:acunaara
ID: 39809708
Just in case:

The TableRange1 property doesn't include page fields. So, I just changed it to TableRange2.

http://msdn.microsoft.com/en-us/library/office/aa215737(v=office.11).aspx

Kind regards and many thanks
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question