+ Reply to Thread
Results 1 to 4 of 4

cannot get pivot tables from VBA to refresh

  1. #1
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    cannot get pivot tables from VBA to refresh

    Hello

    I have three types of tables-standard tables that are generated via VBA, one is that derived from Power Query with that data, and three regular pivot tables that the power query table feeds (two different sheets)

    if I am on the active sheet of the power query table and the pivot table, the refresh in the ribbon works fine for each of the sheets.

    I have tried numerous incarnations of refresh code to refresh those tables after VBA generates the source tables and nothing works.

    The data flow is as follows:

    data entered into cells->VBA creates/updates multiple tables->power query connections to consolidate data->power query table->pivot tables

    any tips would be appreciated.



    TIA

    Randall

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

    Re: cannot get pivot tables from VBA to refresh

    Hi Randall,

    I was surprised that OS X took different commands than PC with your last question. Here is all that I can find to answer your question. I'm not a Mac guy so this may not help..

    https://community.spiceworks.com/top...el-spreadsheet
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Registered User
    Join Date
    05-18-2017
    Location
    Vancouver
    MS-Off Ver
    OS X
    Posts
    25

    Re: cannot get pivot tables from VBA to refresh

    thanks for this. FYI Im back to developing this workbook in Windows.

    Ive tried most every VB code Ive seen in a google search for "pivot table refresh". I think there is a ghost in the machine I need to track down.

    Randall

  4. #4
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: cannot get pivot tables from VBA to refresh

    Hi,

    What code are you actually using to Refresh? If you use RefreshAll you have no control over which order the various refreshes happen, or their timing. You should refresh the query table first, and then the pivots.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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 Data Tables from Pivot Tables
    By JJones5 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 09-15-2016, 03:12 PM
  2. VBA Refresh all does not refresh pivot tables
    By cmorten82 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-05-2016, 04:32 PM
  3. Refresh Pivot Tables
    By jewels3059 in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 07-03-2013, 04:30 AM
  4. Refresh All Pivot Tables
    By kring in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-27-2010, 11:40 AM
  5. Refresh pivot tables
    By rhyan66 in forum Excel General
    Replies: 3
    Last Post: 09-16-2010, 11:52 AM
  6. Refresh Pivot Tables
    By kaoscore in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2006, 03:21 AM
  7. refresh pivot tables
    By bp in forum Excel General
    Replies: 5
    Last Post: 04-04-2006, 02:45 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