Excel Links

I have an excel macro-enabled workbook, call it "seating plans", that refers to a data table in a separate workbook.  It does so both through pivot tables and in formulas.

Sometimes it asks to update links when I open it.  Sometimes it doesn't.  It doesn't seem to matter if the data table worksheet is open or not when opening the seating plans workbook.

Is there any rationale to this?!
Ben CheethamAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Saurabh Singh TeotiaCommented:
In your file you have external links left and that's why it gives you that message at times when you open the file..What i mean by external links is that in the formulas you have using which is basically linked to some other workbook..

Now in order to find these links..You can use the following add-in


This will list all the links which you have and plus if you want to remove them as well this give you an option to do that as well..


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Roy CoxGroup Finance ManagerCommented:
This will remove all links in the active workbook
Option Explicit

Sub BreakLink()

    Dim aLinks As Variant
    Dim Ctr   As Long

    aLinks = ActiveWorkbook.LinkSources(Type:=xlLinkTypeExcelLinks)

    If IsArray(aLinks) Then
        For Ctr = LBound(aLinks) To UBound(aLinks)
            ActiveWorkbook.BreakLink Name:=aLinks(Ctr), _
        Next Ctr
        Else: MsgBox "No links found", vbInformation
    End If

End Sub

Open in new window

Ben CheethamAuthor Commented:

Thanks for the answers so far.

I need to keep the links. I am just curious as to why sometimes the workbook asks to update links and very occasionally it doesn't. It doesn't seem to matter whether or not the data workbook is open or not.

It's not causing a major issue so I'll close the question in a day or two if no joy.
Martin LissOlder than dirtCommented:
This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.