Mistery Link

M

Michael

I used the following code to find info about a missing link that comes
up when my workbook is open. Only problem is I dont know what cell or
object is pointing to that file. How can I return the location of
link?

Sub findlinks()
Dim alinks As Variant
Dim i As Integer
alinks = ActiveWorkbook.LinkSources(xlExcelLinks)
If Not IsEmpty(alinks) Then
For i = 1 To UBound(alinks)
MsgBox "Link " & i & ":" & Chr(13) & alinks(i)
Next i

End If

Returns:
\BEACON\Share\Project Files\Northeast\100322 Lake Street Affordable
Housing\100323 Cheriton Heights\Proformas\Current Version\Cheriton
Heights-Current.xlsm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top