+ Reply to Thread
Results 1 to 5 of 5

Update pivots from cell

  1. #1
    Registered User
    Join Date
    12-01-2011
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Update pivots from cell

    I have posted the following on MrExcel.

    Can someone help?

    Thank you,

    D.

    http://www.mrexcel.com/forum/showthread.php?t=595998

    Hello,

    I have a VBA question with which I hope you can help me.

    I have three charts on sheet “Charts”. These charts are linked to three pivot tables in sheet “Pivots”.

    I have created a drop-down menu on cell E3 in sheet “Charts”.

    I would like all three pivot tables on sheet “Pivots” to update based on cell E3 in sheet “Charts”.

    The pivot tables are called PivotTable2, PivotTable3 and PivotTable4.

    In the pivots, the field I would like to filter is “Refinery Name” (this is a Report Filter on PivotTable3 and a Row Label on PivotTable2 and PivotTable4).

    I would greatly appreciate your help.

    Thank you,

    D.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,358

    Re: Pivots (Excel 2007): Update pivots from cell

    Hi QuickQ and welcome to the forum,

    I have an example of 3 pivot tables on a single sheet that update based on any of the filters changing. Perhaps you can look at the code behind this example and see how it works to solve your problem.
    Attached Files Attached Files
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    12-01-2011
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Pivots (Excel 2007): Update pivots from cell

    Hi Marvin. I looked at the spreadsheet. I see the similarities, but the set-up is different enough, such that I'm not sure I'm at a level in VBA where I can just look at this code and make changes. It seems that you have incorporated a concept of "current sheet" which wouldn't work for me as the refresh is made based on a cell on another sheet, and your refresh is based on the reference to one of the pivot filters themselves whereas I am trying to refresh the pivot based on a cell on a different sheet. I do, however appreciate your help.

    Best,

    D.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,358

    Re: Pivots (Excel 2007): Update pivots from cell

    Hi QuickQ,

    If you need the answer, you should supply a sample workbook that shows what you have. Then we have a head start on understanding the problem. To attach a file, click on "Go Advanced" and then the Paper Clip Icon above the advanced message area.

  5. #5
    Registered User
    Join Date
    12-01-2011
    Location
    NYC
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Pivots (Excel 2007): Update pivots from cell

    Thank you Marvin. I know it is not easy without the file. That is why I tried supplying as much information as I could. I don't own this spreadsheet (I'm just updating it) and I don't have permission to share it. I apologize.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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