+ Reply to Thread
Results 1 to 2 of 2

Need to run a macro triggered by refresh all button

  1. #1
    Registered User
    Join Date
    04-26-2023
    Location
    Great Yarmouth
    MS-Off Ver
    Microsoft 365
    Posts
    6

    Need to run a macro triggered by refresh all button

    Hi all,

    I have a workbook with 2 tables on 2 separate work sheets.
    One table is a production schedule, containing production order numbers, part of a lookup table with an ODBC link. (Table 1)
    The other table is a list of production orders, also taken from a query from our WMS system via ODBC, filtered to specific status stages on the production line. (Table 2)

    I need to delete rows from table 1, when they appear on table 2, usually after clicking refresh all to update with our WMS.

    I found a code that seems to work ok..
    Please Login or Register  to view this content.
    Moderator's note: Please take the time to review our rules. There aren't many, and they are all important. Rule #2 requires code tags. I have added them for you this time because you are a new member. --6StringJazzer

    When I refresh the spreadsheet and a production order number appears on the table on the 'Data 1' sheet, I need it to be removed from the table in the 'schedule' tab.
    Manually running the VBA code seems to do this. But what I really need is for this to run after the Refresh All button is pressed.

    IS this possible? and if so could someone please point me in the right direction?

    This would be so greatly appreciated!
    Last edited by 6StringJazzer; 05-12-2023 at 08:13 AM.

  2. #2
    Forum Contributor
    Join Date
    10-02-2012
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    251

    Re: Need to run a macro triggered by refresh all button

    You could just incorporate the Refresh function into your macro.

    Please Login or Register  to view this content.

+ 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. Command Button Triggered On cell = X
    By Taz97 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-26-2018, 02:46 PM
  2. Pop up button triggered by an action!
    By Laicram123 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-17-2015, 02:35 PM
  3. Macro button to refresh pivot on different sheet in excel
    By vba1234 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2015, 02:55 PM
  4. Redirect Excel to a Macro when the button 'Refresh All' is pressed
    By Pommy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-17-2014, 11:20 AM
  5. [SOLVED] Macro Refresh Button: Run-time Error 1004
    By j_henley123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-26-2012, 07:12 AM
  6. Page Refresh button required (Macro..?)
    By Monk in forum Excel General
    Replies: 0
    Last Post: 02-13-2006, 08:15 AM
  7. Runing two macros triggered by a button
    By JackR in forum Excel General
    Replies: 3
    Last Post: 12-08-2005, 08:55 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