+ Reply to Thread
Results 1 to 7 of 7

Mass removal of hyperlinks

  1. #1
    Registered User
    Join Date
    06-26-2008
    Location
    UK
    Posts
    10

    Mass removal of hyperlinks

    Hi brainier than me dudes! Is there anyway to select all and remove the hyper links from every cell?

    Peace

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    From the sheet where you want to remove the hyperlinks:

    1. Open VBE with Alt+F11
    2. Open up the Immediate Window (if it isn't already visible) with Ctrl+G
    3. Type in:

    Activesheet.Hyperlinks.Delete

    and hit enter.

    That's it! All the hyperlinks will be removed (cell text won't be changed, however).

    Richard

  3. #3
    Registered User
    Join Date
    06-26-2008
    Location
    UK
    Posts
    10
    Cheers for the prompt response Richard.

    One nooby question though. I've done all you said but once ive entered the code into the immediate window how do I make it happen? I add it and press return/enter and it adds a break line?

  4. #4
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    When you press enter, you should go to a new line in the Immediate Window (ie next line down) and the code will (should) have run on your Activesheet (so you can check by going back into Excel and seeing if you still have hyperlinks.

    Richard

  5. #5
    Registered User
    Join Date
    06-26-2008
    Location
    UK
    Posts
    10
    Im not sure what im doing wrong here but its not working? I follow all the instructions to the letter but the links still remain?

  6. #6
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Are your links created using the HYPERLINKS() function? The above won't work on these.

    Are you sure the hyperlinks remain ie can you click on one and it opens up the targeted document?

  7. #7
    Registered User
    Join Date
    06-26-2008
    Location
    UK
    Posts
    10
    Actually! The links have gone, its just the format! Sorry!
    Cheers for the help!

+ 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