+ Reply to Thread
Results 1 to 3 of 3

Automatically update links when opening Workbook

  1. #1
    Forum Contributor
    Join Date
    01-22-2022
    Location
    UK
    MS-Off Ver
    365
    Posts
    125

    Automatically update links when opening Workbook

    I get the message below regarding links.
    I tried the code below for Updating links automatically but instead get an error and a file dialogue.
    I think there is a setting in Excel to Update automatically, but only wanted to update for certain workbooks, containing sheet named "Special".

    Please Login or Register  to view this content.
    Untitled.png

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Automatically update links when opening Workbook

    UpdateLinks is a Workbook method and it is not possible to specify you only want to update links in a particular sheet so it's all or nothing in this case.

    As an aside, when checking if a sheet exists or not, it might be simpler and faster to simply try and assign the sheet to a variable rather than looping through all sheets.
    Please Login or Register  to view this content.
    That can be easily extended to check a sheet exists in any open workbook.

    The message can be suppressed by setting the Application DisplayAlerts property to False - not forgetting to turn on again, after.
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-10-2009
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2007
    Posts
    548

    Re: Automatically update links when opening Workbook

    Thanks but I think this line may be an issue.

    Please Login or Register  to view this content.
    The display still shows, and an error message as well.
    Run time error 1004 Method UpdateLink of object Workbook failed.

+ 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 links automatically when opening another workbook
    By duckboy1981 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-11-2008, 10:28 AM
  2. automatically update links without opening file
    By sir Lancelot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  3. [SOLVED] automatically update links without opening file
    By sir Lancelot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 PM
  4. automatically update links without opening file
    By sir Lancelot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  5. automatically update links without opening file
    By sir Lancelot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  6. automatically update links without opening file
    By sir Lancelot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  7. automatically update links without opening file
    By sir Lancelot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  8. [SOLVED] automatically update links without opening file
    By sir Lancelot in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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