excelhyperlink

Check whether a cell contains a link in Excel


I am trying to check whether values in a column, say A, contain a link, and if true, in column B, I want to type a text, for example: link. I have many records (10 000), so doing this by hand will take a lot of time. Thx.


Solution

  • Function IsHyperlink(r As Range) As Integer
    IsHyperlink = r.Hyperlinks.Count
    End Function