Forum Discussion

Kim Christopher's avatar
Kim Christopher
Copper Contributor
Jun 19, 2018
Solved

Editing hyperlinks in bulk

I have a speadsheet that has the emails but only as hyperlinks. I just want to make this a plain text doc with the email addresses and don't want to have to click and edit each record individually. T...
  • Haytham Amairah's avatar
    Jun 21, 2018

    Hi Kim,

     

    Please try this code.

    Sub GetHyperlinksAddresses()

    'Written By Haytham Amairah

        Dim hy As Hyperlink
        
        For Each hy In ActiveSheet.Hyperlinks
            hy.Range.Value = hy.Address
            hy.Delete
        Next hy

    End Sub

     

    Regards

Resources