+ Reply to Thread
Results 1 to 7 of 7

Refresh All pivots stops executing further code

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Refresh All pivots stops executing further code

    Hi,

    i am using sub like:

    Please Login or Register  to view this content.
    but msgbox part is not triggered. Somehow code is stopped on thisWorkbook.refreshall...

    Can anybody help?

    For power query i am using:

    Please Login or Register  to view this content.
    and it is working like a charm but i do not have option "Enable query in background".

    Please help,
    Jacek

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Refresh All pivots stops executing further code

    Add this in between:
    Please Login or Register  to view this content.
    Click the * to say thanks.

  3. #3
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Refresh All pivots stops executing further code

    Hi PaulM,

    thanks!
    This is not working.
    The issue is when i am adding "Add this to data model". I do not know why...

    Jacek

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Refresh All pivots stops executing further code

    Ok i investigated and Data Model is not connected with the issue.
    The problem is when i am creating pivot table from extarnal source. This is stopping code in RefreshAll statement...

    Best,
    Jacek

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,274

    Re: Refresh All pivots stops executing further code

    Is that the actual code? I ask because it’s not in proper case as I would expect the VBE to correct it.
    Remember what the dormouse said
    Feed your head

  6. #6
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Refresh All pivots stops executing further code

    Hi Rory,

    i wrote on the fly, sorry.

    I found the issue here:

    https://social.msdn.microsoft.com/Fo...rpivotforexcel

    and here:

    http://www.tomgleeson.ie/posts/20140...BARefresh.html

    and here:

    https://social.msdn.microsoft.com/Fo...rpivotforexcel

    so this is very complex problem.
    If you are passing dynamic parameter somethins is not working.
    When you hit refresh all is working like a charm, but in VBA there is a bug.
    Maybe i should report it somewhere to Microsoft?

    I tried to Add to data model all tables and this code works:
    Please Login or Register  to view this content.
    What are prons and cons having table in Data Model? It will be harmful for performance?

    Best,
    Jacek

  7. #7
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365, varying versions/builds
    Posts
    21,274

    Re: Refresh All pivots stops executing further code

    Generally no, the model is pretty good, particularly in terms of storage efficiency.

+ 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. [SOLVED] Refresh All - need to hit it twice to really update all pivots
    By Leszczur in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 10-06-2020, 09:11 AM
  2. refresh pivots only
    By charliec in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-07-2019, 02:17 AM
  3. Macro to refresh SQL queries and refresh pivots
    By lora2014 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-18-2016, 04:45 PM
  4. [SOLVED] VBA To Refresh ALL Pivots
    By Miskondukt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-04-2014, 08:40 PM
  5. Not able to refresh all my pivots
    By ronnyl in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 06-25-2013, 09:50 AM
  6. [SOLVED] Macro stops executing if another workbook is open
    By 4evra in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-01-2013, 12:32 PM
  7. VBA Code to Refresh Pivots on multiple Sheets in a Workbook
    By xlguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-06-2007, 03:58 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