+ Reply to Thread
Results 1 to 3 of 3

Find/Replace a series of hyperlinks in a workbook

  1. #1
    Registered User
    Join Date
    08-22-2014
    Location
    St. Louis, USA
    MS-Off Ver
    2010
    Posts
    23

    Find/Replace a series of hyperlinks in a workbook

    Hi all,

    I'm trying to replace the common root of a hyperlink on a series of cells that contain hyperlinks. For example, cell A8 contains a link to c:\myusernumber\myharddrive\shared_folder\mydocument.docx. I need the the hyperlink root to be x:\shared_folder\mydocument.docx. So find "c:\myusernumber
    myharddrive" and replace it with "x:"

    There are hundreds of links, and the document names are all different.

    I'm trying to build a macro to change these, but the macro tool will not allow me to just change the root.

    Any help would be truly appreciated!

    Thanks in advance!

    Mel

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Find/Replace a series of hyperlinks in a workbook

    For future reference...Workbooks have a built-in document property of: Hyperlink Base
    When set, all hyperlinks without a server designation begin with the hyperlink base and append the explicit location to it.

    Finding it could not be more difficult
    • File.Prepare.Properties
    ...Click: Document Properties...Advanced Properties...Summary tab
    ...Hyperlink Base -> enter the default hyperlink location here

    so if it's set to: c:\myusernumber\myharddrive
    your hyperlink would only need to be: \shared_folder\mydocument.docx

    When you change the hyperlink base to: x:
    your hyperlinks will be directed to that location

    Experiment until it behaves the way you want it to.

    Is that something you can work with?
    Last edited by Ron Coderre; 12-03-2014 at 04:35 PM.
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    08-22-2014
    Location
    St. Louis, USA
    MS-Off Ver
    2010
    Posts
    23

    Re: Find/Replace a series of hyperlinks in a workbook

    Ron, thank you!

    I'm not sure I can use the Hyperlink Base as these are all linked to a colleague's local drive, not mine unfortunately. I failed to mention that, so my apologies! I'm also on Excel 2010 if this helps.

    Thank you again!

    Mel

+ 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. Excel 2007 : find & replace for graph series
    By roland willems in forum Excel General
    Replies: 7
    Last Post: 02-28-2013, 03:38 PM
  2. Find and Replace with hyperlinks
    By sundayss in forum Excel General
    Replies: 0
    Last Post: 09-08-2011, 02:53 AM
  3. find & replace multiple terms with hyperlinks
    By DMR1712 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-24-2009, 10:33 AM
  4. find/replace text in multiple hyperlinks
    By notorious22 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-22-2007, 06:33 PM
  5. Can I use Find and Replace all with Hyperlinks?
    By HandsOnManager in forum Excel General
    Replies: 0
    Last Post: 02-15-2005, 06:45 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