+ Reply to Thread
Results 1 to 3 of 3

Update links automatically

  1. #1
    Registered User
    Join Date
    07-11-2005
    Posts
    28

    Update links automatically

    Could somebody please tell me what code i need to write into a macro to remove the pop up box asking you to update links when opening a file??? I want this to be automated and not for my end user to have to click the update button.

    Thanks in advance, enjoy your weekends, thank goodness it is friday!!!

  2. #2
    Norman Jones
    Guest

    Re: Update links automatically



    --
    Hi Paul,

    Set the UpddateLinks property of the Open method to True, e,g,:

    Workbooks.Open "Book1.xls", UpdateLinks:=True


    ---
    Regards,
    Norman



    "PaulOakley" <[email protected]> wrote
    in message news:[email protected]...
    >
    > Could somebody please tell me what code i need to write into a macro to
    > remove the pop up box asking you to update links when opening a file???
    > I want this to be automated and not for my end user to have to click the
    > update button.
    >
    > Thanks in advance, enjoy your weekends, thank goodness it is friday!!!
    >
    >
    > --
    > PaulOakley
    > ------------------------------------------------------------------------
    > PaulOakley's Profile:
    > http://www.excelforum.com/member.php...o&userid=25103
    > View this thread: http://www.excelforum.com/showthread...hreadid=391227
    >




  3. #3
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Good morning PaulOakley

    You can turn off the box from within Excels options (Tools > Options, Edit, Ask to update automatic links). Unfortunately this is an Excel setting rather than a workbook setting, so is not saved with your workbook. To access this setting via VBA you would use the command:

    Application.AskToUpdateLinks = False

    But then you would get the dialog box asking if you want to run macros, so to get a dialog free file opening you really need to change the setting in the Options.

    Have a nice weekend!

    HTH

    DominicB

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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