Excel friends,
I have a workbook with one sheet with about 2000 external links. I would like to break all the links and simultaneously make the fond dark blue of each broken link. I found this code and it breaks the links of the whole workbook in a fraction of a second. Is there a way to also make the font dark blue at the same speed:
Thanks for any help!
I have a workbook with one sheet with about 2000 external links. I would like to break all the links and simultaneously make the fond dark blue of each broken link. I found this code and it breaks the links of the whole workbook in a fraction of a second. Is there a way to also make the font dark blue at the same speed:
VBA Code:
Sub BreakExternalReferences()
Dim arLinks As Variant
Dim i As Long
arLinks = ActiveWorkbook.LinkSources(Type:=xlLinkTypeExcelLinks)
If IsArray(arLinks) Then
For i = LBound(arLinks) To UBound(arLinks)
ActiveWorkbook.BreakLink Name:=arLinks(i), Type:=xlLinkTypeExcelLinks
Next i
End If
End Sub
Thanks for any help!