+ Reply to Thread
Results 1 to 3 of 3

Automatically open a workbook and update external links

  1. #1
    Forum Contributor
    Join Date
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019, Microsoft 365.
    Posts
    440

    Automatically open a workbook and update external links

    Hi everyone,

    I am very keen to know how Excel opens a file and automatically update all links without intervention. For this purpose, I attached two sample files here: file 'Macro' is linked to the source file 'File 1'. I am looking for a clever macro which makes the tasks below possible:

    1) Automatically open the file 'Macro' at a specific time (e.g. 9.00am)

    2) Update all links automatically

    3) Save and close the file when all results are updated

    I tried to record a macro to do this, but did not work. I will be very grateful if some Excel VBA guru can help me for this example here. I can then adapt it for my more complex tasks
    Attached Files Attached Files

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

    Re: Automatically open a workbook and update external links

    Here is the code for updating links. You may want to throw in an ON ERROR RESUME NEXT depending upon whether you want notification for failed links.

    As for running it at 9 AM every day, I've included some instructions on that. It's best to use the Windows Task scheduler.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    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
    01-15-2013
    Location
    London
    MS-Off Ver
    Excel 2003, 2007, 2010, 2019, Microsoft 365.
    Posts
    440

    Re: Automatically open a workbook and update external links

    Many thanks, dflak. It is a great macro. It worked well

+ 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. Update automatically links to another workbook
    By mariec_06 in forum Excel General
    Replies: 0
    Last Post: 01-07-2016, 09:04 AM
  2. [SOLVED] Is it possible to have 1 workbook automatically update its links?
    By Redbullmoo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-25-2015, 12:03 AM
  3. [SOLVED] Update and then break external links to another workbook
    By tatiana_ in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-22-2014, 03:22 AM
  4. Possible to have a shared workbook update external data links?
    By scottatbuckman in forum Excel General
    Replies: 1
    Last Post: 03-03-2014, 12:38 AM
  5. [SOLVED] Update external links without opening workbook
    By elliotencore in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2013, 09:45 AM
  6. Don't update links on workbook open
    By dylanemcgregor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-14-2009, 07:32 PM
  7. Links only update when external workbook is open
    By CMB in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-07-2005, 08: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