+ Reply to Thread
Results 1 to 3 of 3

macro activation after query refresh

  1. #1
    Forum Contributor
    Join Date
    12-12-2022
    Location
    italy
    MS-Off Ver
    office 365
    Posts
    164

    macro activation after query refresh

    Hi everyone!!!
    small Vproblem to solve . I set up a file that when I open it with the workbook open function, it refreshes a query that I linked to another excel folder. I would like to activate another macro at the end of the query refresh, how can I do it?
    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: macro activation after query refresh

    First go to the data tab and look at the query. Right click on it and look at the properties. Click OFF the box that says Allow Background Refresh. This means that nothing happens until the query completes. If you want to be extra cautious throw in a DoEvents.

    Please Login or Register  to view this content.
    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
    Forum Contributor
    Join Date
    12-12-2022
    Location
    italy
    MS-Off Ver
    office 365
    Posts
    164

    Re: macro activation after query refresh

    thanks a lot

+ 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] call macro after refresh query end
    By Undo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-26-2021, 03:48 PM
  2. Run Macro After SQL Query Refresh
    By Rosco88 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-08-2018, 07:51 AM
  3. [SOLVED] Refresh data table filters on worksheet activation
    By BuZZarD73 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-07-2014, 06:45 AM
  4. Macro to Refresh Database Query
    By gatorator in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2011, 08:37 AM
  5. Macro to refresh query.
    By CJPHX in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-20-2010, 01:47 PM
  6. Macro to Refresh Import Query
    By erock24 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-02-2009, 03:57 AM
  7. User-ID & PSWD from Macro for a Query Refresh
    By ldevrries in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2007, 12:21 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