+ Reply to Thread
Results 1 to 6 of 6

Thread: Automatic updating of workbook links

  1. #1
    Registered User
    Join Date
    10-26-2010
    Location
    Clonakilty, Co Cork, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    12

    Angry Automatic updating of workbook links

    In Excel 2010 when I open any workbook I want to have all links to other workbooks automatically updated without prompting. According to Office 2010 Excel Help, I can achieve this for each workbook by clearing the following:
    File > Options > Advanced > When calculating this workbook > Update links to other documents
    Unfortunately this option does not stay cleared!
    • If I go back to the option while the workbook is still open, it remains cleared.
    • If I (re)open it after saving and closing, the option is checked again.
    As far as I can tell, all the other options in this category keep their last settings.

    Any ideas?

  2. #2
    Forum Contributor ianh's Avatar
    Join Date
    11-19-2010
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Automatic updating of workbook links

    Create an Auto_Open Macro
        
    Sub Auto_Open
    ActiveWorkbook.RefreshAll
    End Sub
    depending on what/how your links are you may need a slightly different code. This works for me reading XML into my workbook.

  3. #3
    Forum Contributor ianh's Avatar
    Join Date
    11-19-2010
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    111

    Re: Automatic updating of workbook links

    Having just had another look i think this maybe what you need.

      ActiveWorkbook.UpdateRemoteReferences = True

  4. #4
    Valued Forum Contributor vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - Guimba-Nueva Ecija
    MS-Off Ver
    2010
    Posts
    777

    Re: Automatic updating of workbook links


    File > Options > Advanced > When calculating this workbook > Update links to other documents
    Go down one step under GENERAL

    you'll find -
    Ask to Update Automatic Links
    Contributors to this forum do not get paid. They give their valuable time to help you solve your problem. That's why feel free to CLICK their STAR icon to say thank you -even the given idea/solution didn't really solve your queries. The time given to you deserves a small gratitude anyway.

    Dare to give a pencil to a child. http://www.blackpencilproject.org/

  5. #5
    Registered User
    Join Date
    10-26-2010
    Location
    Clonakilty, Co Cork, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Automatic updating of workbook links

    Quote Originally Posted by ianh View Post
    Create an Auto_Open Macro
        
    Sub Auto_Open
    ActiveWorkbook.RefreshAll
    End Sub
    depending on what/how your links are you may need a slightly different code. This works for me reading XML into my workbook.
    I understand the idea of this and your later amendment to the code, but I have some questions:
    1. Where can I put this code so that it will run every time I open any workbook? I do not want to have to include it in each and every workbook, but I cannot identify an Application VBA project with a suitable module.
    2. Will it definitely prevent the update prompt?

  6. #6
    Registered User
    Join Date
    10-26-2010
    Location
    Clonakilty, Co Cork, Ireland
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Automatic updating of workbook links

    I do not understand how these two settings interact with each other.

    The "Ask to Update Automatic Links" setting was initially checked.

    My initial experiment with clearing it seems to prevent updating for all workbooks.

+ 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.2.0