I want to copy entire row to destination sheet if either: 1) there are no hyperlinks in the row, or 2) the hyperlinks in the row are all broken links (e.g., they return an error when accessed).
Sub Find_Value()
Dim sh1 As Worksheet, sh2 As Worksheet
Dim rFind As Range
Dim i As Long
Set sh1 = Sheets("data")
Set sh2 = Sheets("copy")
For i = 1 To Cells(Rows.Count, "A").End(xlUp).Row
If Cells(i, 1).Hyperlinks.Count = 0 Then
Cells(i, "A").EntireRow.Copy Destination:=sh2.Cells(i, "A").End(xlUp).Offset(1)
Else
End If
Next i
End Sub
I can do it for if there are no hyperlinks (shown in my code above), but how can I check if the links are broken?