External Links

Libra0099

Active Member
Joined
Apr 28, 2007
Messages
273
Dear All,

Good day!

Is there any utility which can name the file along with its path where my desired excel file (Current file) is linked.

OR I can also rephrase the requirement as below:

Name of the files (along with their path) which are fed by my current excel file


Thanks
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
I dont understand your question properly.

The following will give you the workbook path and name

=CELL("filename")

Does this help?
 
Upvote 0
Hi

Are you talking about external Excel links? If so then this macro may provide what you need:

Code:
Sub ListExternalLinks()
    Dim shtOutput As Worksheet
    Dim arrLinks As Variant
    Dim lArrIndex As Long



    arrLinks = ActiveWorkbook.LinkSources(xlExcelLinks)

    'If there is at least one external link then output them to a worksheet
    If Not IsEmpty(arrLinks) Then

        Set shtOutput = Worksheets.Add
        shtOutput.Range("A1").Value = "External Links within this workbook"
        shtOutput.Range("A3").Value = "File Path"

        For lArrIndex = 1 To UBound(arrLinks)

            shtOutput.Range("A" & lArrIndex + 3).Value = arrLinks(lArrIndex)

        Next lArrIndex

        shtOutput.Range("A2:" & shtOutput.UsedRange.SpecialCells(xlCellTypeLastCell).Address).Columns.AutoFit

    Else

        MsgBox "Active workbook contains no external Excel links.", vbInformation, "No External Links"

    End If



End Sub

If the active workbook contains any links to external Excel workbooks then this macro will list them. Note that you can also get this information by choosing Edit, Links in Excel 2003 or prior, or by choosing Data, Edit Links in Excel 2007 onwards (I guess that you already know this :-) )

HTH
DK
 
Upvote 0
dear all,

thanks for giving time.

My requirement is to find out the files which are reading from my current file.

For example... I am working on file A. I want to know data from file is floating to File B, C, X, Z etc

From Edit links I can get information that from which file data is coming in.. But I want to know where current file's data is going OUT.

I hope you will understand my situation.
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,777
Members
452,942
Latest member
VijayNewtoExcel

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top