+ Reply to Thread
Results 1 to 2 of 2

Is there a simple way of updating pivot with VBA?

  1. #1
    Registered User
    Join Date
    01-30-2018
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    10

    Is there a simple way of updating pivot with VBA?

    Lets simplify my question by saying that I have a workbook "Calculate", and two others called "2018" and "2019".

    In Calculate I have a pivot-table "Pivot1" which has data from workbook 2018, sheet1 A:C.

    Is there an easy way of updating Pivot1 so it changes source from workbook 2018 to 2019 but still fetches from A:C?

    Thanks for all help!

  2. #2
    Registered User
    Join Date
    01-30-2018
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    10

    Re: Is there a simple way of updating pivot with VBA?

    Hey again!

    I used record macro with the change datasource function and got this neat code:

    Please Login or Register  to view this content.
    It works great!

+ 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. VBA not updating Pivot Table
    By STUARTXL in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2016, 03:43 PM
  2. [SOLVED] Pivot Not Updating
    By Excel-Access in forum Excel General
    Replies: 0
    Last Post: 10-09-2015, 07:22 AM
  3. [SOLVED] Question on Updating my Pivot Tables and Power Pivot in my workbook
    By rv02 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 01-29-2015, 06:08 PM
  4. Updating a pivot filter with another pivot updated by a Slicer
    By Jabba69 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-17-2014, 04:08 PM
  5. Pivot Chart not updating when Pivot filter changes
    By kmac153 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-30-2014, 02:45 AM
  6. Replies: 0
    Last Post: 01-14-2014, 01:38 PM
  7. Pivot Page Field Macro Works, but pivot not updating
    By NMullis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-19-2008, 05:12 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