is possible to DETECT the linked files (or path) inside an excel spreadsheet? in VB6.0

Posted on 2004-11-12
Last Modified: 2010-05-02
i have several linked excel files, lot of users have it, but i need to know the exact path for a linked file in the spreasheet with VB 6.0.
Question by:matthews_30
    1 Comment
    LVL 2

    Accepted Solution

    Here is a little macro which might help you.
    It determines how many linked objects there are and loops through them finding the source location, then printing them to the sheet in column 10.

    It's just an example for you to read though and adapt to your own requirements.

    Sub PrintObjectSource()
        If ActiveSheet.Shapes.Count Then
            For i = 1 To ActiveSheet.Shapes.Count
                temp = Right(Selection.SourceName, Len(Selection.SourceName) - InStr(1, Selection.SourceName, "|"))
                ActiveSheet.Cells(i, 10).Value = Left(temp, Len(temp) - 2)
            Next i
        End If
    End Sub


    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
    Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now