+ Reply to Thread
Results 1 to 3 of 3

how do I change a hyperlink to text

  1. #1
    mmhoballah
    Guest

    how do I change a hyperlink to text

    I have a long column of hyperlinks in an excel file. I need to copy the full
    addresses as text into an adjacent column. I can do this line by line thru
    Edit Hyperlink Ctrl C / Ctrl V, but this is too tedious. Tried to record my
    steps to a macro but macro completely ignored my steps!
    Thank you

  2. #2
    Norman Jones
    Guest

    Re: how do I change a hyperlink to text

    Hi Mmhoballah,

    Try::

    '=============>>
    Public Sub TesterB01()
    Dim rng As Range
    Dim HL As Hyperlink

    Set rng = Activesheet.Range("J:J") '<<==== CHANGE

    For Each HL In rng.Hyperlinks
    HL.Parent.Offset(0, 1).Value = HL.Address

    Next HL

    End Sub
    '<<=============


    ---
    Regards,
    Norman



    "mmhoballah" <[email protected]> wrote in message
    news:[email protected]...
    >I have a long column of hyperlinks in an excel file. I need to copy the
    >full
    > addresses as text into an adjacent column. I can do this line by line thru
    > Edit Hyperlink Ctrl C / Ctrl V, but this is too tedious. Tried to record
    > my
    > steps to a macro but macro completely ignored my steps!
    > Thank you




  3. #3
    mmhoballah
    Guest

    Re: how do I change a hyperlink to text

    worked like a charm, many thanks

    "Norman Jones" wrote:

    > Hi Mmhoballah,
    >
    > Try::
    >
    > '=============>>
    > Public Sub TesterB01()
    > Dim rng As Range
    > Dim HL As Hyperlink
    >
    > Set rng = Activesheet.Range("J:J") '<<==== CHANGE
    >
    > For Each HL In rng.Hyperlinks
    > HL.Parent.Offset(0, 1).Value = HL.Address
    >
    > Next HL
    >
    > End Sub
    > '<<=============
    >
    >
    > ---
    > Regards,
    > Norman
    >
    >
    >
    > "mmhoballah" <[email protected]> wrote in message
    > news:[email protected]...
    > >I have a long column of hyperlinks in an excel file. I need to copy the
    > >full
    > > addresses as text into an adjacent column. I can do this line by line thru
    > > Edit Hyperlink Ctrl C / Ctrl V, but this is too tedious. Tried to record
    > > my
    > > steps to a macro but macro completely ignored my steps!
    > > Thank you

    >
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1