Removing External Links

dbmccallum

New Member
Joined
Nov 7, 2017
Messages
6
Hi All,

I have several "links" that I just can not find (3 links). I have cleaned up the Defined Names. Used fine *.xl* across the whole workbook. But whenever I open my spreadsheet it looking for an extremely old version of its companion spreadsheet. It is just a nuisance error, but I would love to kill it.

On the data tab, edit links is grayed out.

running Excel 2016
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Thanks for the links, I had tried most of those methods, however in my investigations, I found out the "find" does not search hyperlinks.

I used the following VBA to list all of my links and removed the unwanted ones:
Public Sub findhyperlinks()
Dim h As Hyperlink
Dim Sh As Worksheet
Dim Csh As Worksheet
Call SetPassword(spw)
ActiveWorkbook.Unprotect Password:=spw

On Error GoTo errEnd
Sheets("listoflinks").Delete
errEnd:

Set Csh = ActiveWorkbook.Worksheets.Add
Csh.Name = "listoflinks"
With Csh
.Range("A1").Value = "Sheet Address"
.Range("B1").Value = "Link Address"
.Range("C1").Value = "Address"
.Range("D1").Value = "ScreenTip"
End With
For Each Sh In ActiveWorkbook.Worksheets
If Sh.Name <> Csh.Name Then
For Each h In Sh.Hyperlinks
With Csh.Cells(Csh.Rows.Count, "A").End(xlUp).Offset(1, 0)
.Value = Sh.Name & " - " & h.Parent.Address
.Offset(0, 1).Value = h.SubAddress
.Offset(0, 2).Value = h.Address
.Offset(0, 3).Value = h.ScreenTip
End With
Next
End If
Next
Columns("A:D").AutoFit
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,199
Members
453,022
Latest member
RobertV1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top