+ Reply to Thread
Results 1 to 4 of 4

Pivot Table Refresh Based On Inputs From Cell A2

  1. #1
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Pivot Table Refresh Based On Inputs From Cell A2

    Hi,

    I have a Drop Down List in Cell A2 on Sheet named "Chart3"

    I want a Pivot Table named "PivotTable3" to refresh automatically when input from Cell A2 changes

    Any Help?
    Cheers!
    Deep Dave

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Pivot Table Refresh Based On Inputs From Cell A2

    How about a Worksheet_Change event on the sheet? Right-click the sheet tab, click "View Code" and paste the following into the code window

    Please Login or Register  to view this content.
    cheers, teylyn

  3. #3
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Pivot Table Refresh Based On Inputs From Cell A2

    Quote Originally Posted by teylyn View Post
    How about a Worksheet_Change event on the sheet? Right-click the sheet tab, click "View Code" and paste the following into the code window

    Please Login or Register  to view this content.
    cheers, teylyn
    Hi,

    Thank you for the reply.. Actually I cam up with the same code, however there is an issue I am facing..

    I have some data from an SQL Server brought using Microsoft Query Using A2 as the Parameter.

    Based on this I have created the Pivot table, when I change the Value from Cell A2, the new data from the DB Comes, but naturally does not refresh the Pivot Table Data, hence needed this code..

    The problem is, when the Value from A2 changes, the Pivot Refreshes first and then the DB Data (Instead of the DB Data Refreshing 1st and then the Pivot Cache), hence reflecting the wrong data on the Pivot Table.

    Can you guide me with that?

  4. #4
    Forum Expert NeedForExcel's Avatar
    Join Date
    03-16-2013
    Location
    Pune, India
    MS-Off Ver
    Excel 2016:2019, MS 365
    Posts
    3,873

    Re: Pivot Table Refresh Based On Inputs From Cell A2

    @ teylyn

    Managed to get it working..

    Thank you for the help!

+ 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. Refresh Pivot Table automaticaaly based on multiple cell values
    By Deepak.Malviya.h in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-31-2015, 11:32 AM
  2. [SOLVED] VBA to refresh pivot table if cell values changes
    By siddiq1212 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-26-2014, 01:06 PM
  3. [SOLVED] Using VBA to change a pivot table filter, refresh the report and set up a refresh delay
    By Bonnister in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-18-2012, 10:43 AM
  4. Refresh Pivot table based on condition
    By booo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2010, 03:02 PM
  5. Pivot table - cell format to remain the same when refresh
    By mingali in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-15-2010, 12:01 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