+ Reply to Thread
Results 1 to 3 of 3

Refresh connections, then pivot

  1. #1
    Registered User
    Join Date
    12-06-2022
    Location
    Blackpool
    MS-Off Ver
    2208
    Posts
    1

    Refresh connections, then pivot

    Hi All,

    Please can someone let me know how to create a macro that will refresh all sql connections and then refresh the pivot table after the sql connection refreshes are complete.

    Thank you!

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Refresh connections, then pivot

    First of all, open the properties for each of the queries and uncheck the box that reads, Allow Background refresh. This means that the queries will run sequentially and nothing else happens until each completes.

    I suppose you could write a macro if you want, but if things are set up like I indicated above, clicking on Data > Refresh All should do it.
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Valued Forum Contributor
    Join Date
    11-29-2022
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    430

    Re: Refresh connections, then pivot

    What dflak says and also check the box that says Refresh data when opening the file.

+ 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. Connections / Tables (PQ) Selecting Themselves on Refresh?
    By NewYears1978 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-06-2023, 02:18 PM
  2. Refresh all data connections and queries
    By purlo in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-14-2020, 09:57 AM
  3. [SOLVED] Refresh Connections then Pivots
    By RollingStone88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2020, 11:30 AM
  4. [SOLVED] Macro to refresh connections and add formulas
    By PWNHS in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-02-2018, 05:25 AM
  5. Refresh All vs. Refresh All Data Connections
    By TK92 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-22-2016, 09:14 AM
  6. Replies: 0
    Last Post: 08-20-2013, 10:08 AM
  7. Refresh Specific Sheets/ Connections
    By hyp3rbola in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-31-2013, 04:50 PM

Tags for this Thread

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