+ Reply to Thread
Results 1 to 9 of 9

Need help with two issues: 1) Not updating links and 2) breaking links in workbook

  1. #1
    Registered User
    Join Date
    06-10-2016
    Location
    Houston, TX
    MS-Off Ver
    Excel 2016
    Posts
    13

    Need help with two issues: 1) Not updating links and 2) breaking links in workbook

    I have a VBA code that, upon a key-stroke prompt, will copy a worksheet from a source workbook to a destination workbook, rename the worksheet with a date, and close the source workbook. My problem is that when the macro opens the source workbook, the source workbook asks if I'd like to update links - I do not. And once the worksheet is copied over the workbook maintains a links to the source workbook.

    How can I set up my code to prevent the Update Links prompt from popping up and break the data link to the source workbook?

    My code is below:

    Please Login or Register  to view this content.
    Thanks in advance for any advice. I use Excel 2016.
    Last edited by Leith Ross; 01-22-2018 at 07:13 PM. Reason: Added Code Tags

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need help with two issues: 1) Not updating links and 2) breaking links in workbook

    Try this. Not tested.

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    06-10-2016
    Location
    Houston, TX
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Need help with two issues: 1) Not updating links and 2) breaking links in workbook

    Thanks, AlphaFrog!

    This gets rid of the link after the workbook closes. Do you have one for telling it to not update links as well?

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need help with two issues: 1) Not updating links and 2) breaking links in workbook

    You're welcome.

    If the links are gone, why would you get an update links message?

    Put this at the end of the macro.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-10-2016
    Location
    Houston, TX
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Need help with two issues: 1) Not updating links and 2) breaking links in workbook

    We've now broken the links in the destination workbook, but when my macro opens the source file to copy the worksheet over, the source file asks if I want to update the links, bringing my progress to a halt until I tell it not to update. Once I say don't update, it continues with copying the tab then closing the source file.

  6. #6
    Registered User
    Join Date
    06-10-2016
    Location
    Houston, TX
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Need help with two issues: 1) Not updating links and 2) breaking links in workbook

    Where would I place that if I want to tell it to not update links for the source workbook?

  7. #7
    Registered User
    Join Date
    06-10-2016
    Location
    Houston, TX
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Need help with two issues: 1) Not updating links and 2) breaking links in workbook

    The popup says:

    "This workbook contains links to one or more external sources that could be unsafe.

    If you trust the links, update them to get the latest data. Otherwise, you can keep working with the data you have."

  8. #8
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Need help with two issues: 1) Not updating links and 2) breaking links in workbook

    Quote Originally Posted by mmayo713 View Post
    Where would I place that if I want to tell it to not update links for the source workbook?

    Use this for the source workbook.
    Please Login or Register  to view this content.
    How to suppress Update Links warning.

  9. #9
    Registered User
    Join Date
    06-10-2016
    Location
    Houston, TX
    MS-Off Ver
    Excel 2016
    Posts
    13

    Re: Need help with two issues: 1) Not updating links and 2) breaking links in workbook

    That worked! Thank you!

+ 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. links between tabs breaking in shared workbook
    By brownrice105 in forum Excel General
    Replies: 0
    Last Post: 02-25-2015, 02:27 PM
  2. Links to External Workbook 'Breaking' for Pivot Table
    By mcnikal in forum Excel General
    Replies: 1
    Last Post: 01-10-2015, 08:38 AM
  3. Excel 2010- Links keep breaking, updating values issue too
    By psumeb in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-15-2013, 01:16 PM
  4. Breaking out tabs of a workbook and keeping the links into individual workbooks
    By ozne99 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-29-2012, 03:02 PM
  5. Updating links issues
    By talksalot81 in forum Excel General
    Replies: 1
    Last Post: 08-03-2011, 05:02 AM
  6. Links to Excel Spreadsheet - Save without breaking links
    By Danto in forum Word Formatting & General
    Replies: 0
    Last Post: 05-13-2009, 04:00 AM
  7. Replies: 0
    Last Post: 04-01-2009, 01:10 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