Forum Discussion
Ashutosh_Vashisht17
Jun 02, 2021Copper Contributor
Excel 2016 - Formulae or link sheet are automatically removed
Hi All , We have been facing an issue with some of out excel files which contain formulaes / linked sheets would automatically have these linking / formulaes removed randomly. This is happening...
NikolinoDE
Jun 02, 2021Gold Contributor
Here is a quick macro where you can delete all links at once.
Sub BreakLinks()
Dim arrLinks As Variant, i As Integer
arrLinks = ActiveWorkbook.LinkSources(xlLinkTypeExcelLinks)
If Not IsEmpty(arrLinks) Then
For i = 1 To UBound(arrLinks)
ActiveWorkbook.BreakLink _
Name:=arrLinks(i), _
Type:=xlLinkTypeExcelLinks
Next
End If
End Sub
Hope I could help you with this information.
Nikolino
I know that I don't know (Socrates)
* Kindly Mark and Vote this reply if it helps please, as it will be beneficial to more Community members reading here.