Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sub Remove_All_Links()
Dim Links As Variant
Links = ActiveWorkbook.LinkSources _
(Type:=xlLinkTypeExcelLinks)
If IsEmpty(Links) Then Exit Sub
For linkcount = 1 To UBound(Links)
ActiveWorkbook.BreakLink _
Name:=Links(linkcount), _
Type:=xlLinkTypeExcelLinks
Next
End Sub
Sub aa()
Dim Links As Variant
Links = ActiveWorkbook.LinkSources _
(Type:=xlLinkTypeExcelLinks)
If IsEmpty(Links) Then Exit Sub
For linkcount = 1 To UBound(Links)
If MsgBox("Do you want to remove the link to " & Links(linkcount) & "?", vbYesNo) = vbYes Then
ActiveWorkbook.BreakLink _
Name:=Links(linkcount), _
Type:=xlLinkTypeExcelLinks
End If
Next
MsgBox "All Excel links listed."
End Sub
Function Link(Count As Integer)
Dim Links As Variant, LinkCount As Integer
Links = ActiveWorkbook.LinkSources _
(Type:=xlLinkTypeExcelLinks)
If IsEmpty(Links) Then Exit Function
Blad = Links(Count)
End Function