+ Reply to Thread
Results 1 to 4 of 4

Need Macro remove hyperlink text <a [SOLVED]

  1. #1
    Registered User
    Join Date
    10-12-2006
    Posts
    46

    Need Macro remove hyperlink text <a [SOLVED]

    Guys Need help to create macro that will remove all hypertext formatting in Column A.

    Example:
    In Column A
    <a href="/Menu_Object.aspx?objID=24527" target="_blank">Only want this text</a>

    result should be:

    Only want this text
    Last edited by dj_mix; 09-20-2016 at 11:29 AM.

  2. #2
    Registered User
    Join Date
    02-28-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Need Macro remove hyperlink text <a

    Use this:

    Sub Hypertext()
    Cells.Replace What:="<*>", Replacement:="", LookAt:=xlPart, SearchOrder _
    :=xlByRows, MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False
    End Sub

    Hope this works for you..
    Regards,
    Rvgs

  3. #3
    Registered User
    Join Date
    10-12-2006
    Posts
    46

    Re: Need Macro remove hyperlink text <a

    Thanks works Great !!

  4. #4
    Registered User
    Join Date
    02-28-2014
    Location
    INDIA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Need Macro remove hyperlink text <a

    Thanks for confirming!

    < ----- Please click the little star * next to add reputation if my post helps you******************

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Macro to remove Display Text from hyperlink
    By garyd7 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-05-2019, 01:35 PM
  2. remove spaces and characters in hyperlink - macro
    By missy22 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2013, 09:23 AM
  3. Hyperlink test
    By Tony Valko in forum The Water Cooler
    Replies: 4
    Last Post: 01-05-2013, 03:49 PM
  4. Test a Hyperlink
    By bnbbond in forum Excel General
    Replies: 1
    Last Post: 06-25-2006, 11:20 AM
  5. [SOLVED] Test for Hyperlink
    By Gary''s Student in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-04-2006, 05:10 PM

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