Good Day,
After getting great replies on my last question, I’m back again with a new one about the Connections.
There are 3 Connections in many of our files, Excel 2003, which are not linked to any external files but can NOT be deleted over the menu (Edit -> Connections -> Delete Source").
The following code deleted all links BUT these 3:
Sub RemoveLinks()
Dim Link As Variant
For Each Link In ActiveWorkbook.LinkSources
ActiveWorkbook.BreakLink Name:=Link, Type:=xlLinkTypeExcelLinks
Next
End Sub
These links can be listed, using Sam Mathai Chacko’s code, but cannot be removed.
Copying the sheets to a new workbook does not resolve the issue.
Linking them to a new source does not help either.
To my understanding "LinkSources" is a function returning the Link Sources.
Where are these "Sources" stored? How could they be manipulated?
I’ve so far seen: BreakLink and ChangeLink.
Which function or method would remove the entries in the list?
Many thanks in advance.
Saeed
After getting great replies on my last question, I’m back again with a new one about the Connections.
There are 3 Connections in many of our files, Excel 2003, which are not linked to any external files but can NOT be deleted over the menu (Edit -> Connections -> Delete Source").
The following code deleted all links BUT these 3:
Sub RemoveLinks()
Dim Link As Variant
For Each Link In ActiveWorkbook.LinkSources
ActiveWorkbook.BreakLink Name:=Link, Type:=xlLinkTypeExcelLinks
Next
End Sub
These links can be listed, using Sam Mathai Chacko’s code, but cannot be removed.
Copying the sheets to a new workbook does not resolve the issue.
Linking them to a new source does not help either.
To my understanding "LinkSources" is a function returning the Link Sources.
Where are these "Sources" stored? How could they be manipulated?
I’ve so far seen: BreakLink and ChangeLink.
Which function or method would remove the entries in the list?
Many thanks in advance.
Saeed