Break External Links with other workbooks
At times you come across the this dialog box when you open an Excel workbook. To get rid of this you can run a small piece of code just once. This code would break all links.
Sub TestRun() Call BreakExternalXLLinks(ThisWorkbook) End Sub Sub BreakExternalXLLinks(wbk As Workbook) Dim strLinks As Variant Dim intLoop As Integer strLinks = wbk.LinkSources(Type:=xlLinkTypeExcelLinks) If IsEmpty(strLinks) Then MsgBox "No external link found.", vbInformation, "Excel Expert Utility" Exit Sub End If For intLoop = 1 To UBound(strLinks) wbk.BreakLink strLinks(intLoop), xlLinkTypeExcelLinks Next intLoop Erase strLinks End Sub
»
- Vishesh's blog
- Login or register to post comments
- 12661 reads
Recent comments
5 years 34 weeks ago
6 years 20 weeks ago
6 years 32 weeks ago
6 years 35 weeks ago
6 years 36 weeks ago
6 years 42 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago
6 years 50 weeks ago