Roderick_E
Well-known Member
- Joined
- Oct 13, 2007
- Messages
- 2,051
This snippet will create a new sheet and return all the external links but my problem is that the link it returns isn't found on any sheet within the workbook (as a formula) nor do I find it in the name mgr refs. Where else could it be and how do I find it? Thanks
P.S. would be great if the code below indicated where the link was located, not just a cell range but in named refs, as a chart title ref, where ever it may be.
P.S. would be great if the code below indicated where the link was located, not just a cell range but in named refs, as a chart title ref, where ever it may be.
Code:
Sub ListLinks()
'Updateby20140529
Dim wb As Workbook
Set wb = Application.ActiveWorkbook
If Not IsEmpty(wb.LinkSources(xlExcelLinks)) Then
wb.Sheets.Add
xIndex = 1
For Each link In wb.LinkSources(xlExcelLinks)
Application.ActiveSheet.Cells(xIndex, 1).Value = link
xIndex = xIndex + 1
Next link
End If
End Sub