+ Reply to Thread
Results 1 to 4 of 4

Macro - hyperlinks + add-in

Hybrid View

  1. #1
    Registered User
    Join Date
    06-05-2009
    Location
    O'Fallon
    MS-Off Ver
    Excel 2003
    Posts
    4

    Question Macro - hyperlinks + add-in

    I am trying to figure out how to make a macro remove hyperlinks and make it an add-in.

    Anyone know?

  2. #2
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile Re: Macro - hyperlinks + add-in

    Good morning Snarf
    ...and welcome to the forum!!
    Quote Originally Posted by Snarf View Post
    I am trying to figure out how to make a macro remove hyperlinks and make it an add-in.
    All hyperlinks in the workbook, or all hyperlinks in the worksheet only? Or just the hyperlink in a selected cell? Is the text to stay behind?

    This simple macro will remove all hyperlinks in the currently active workbook :
    Sub test()
    For Each WkSht In ActiveWorkbook.Worksheets
    WkSht.Activate
    Cells.Hyperlinks.Delete
    Next WkSht
    End Sub
    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  3. #3
    Registered User
    Join Date
    06-05-2009
    Location
    O'Fallon
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Macro - hyperlinks + add-in

    That will work, or just the active worksheet (I have that macro), either one.

    But I create a new workbook every week, so I don't want to have to keep recreating the macro on the file. There's a way to save the macro as an add-in so that it can be accessed in any excel file, I just can't find it.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Macro - hyperlinks + add-in

    Entia non sunt multiplicanda sine necessitate

+ 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