+ Reply to Thread
Results 1 to 1 of 1

Macro To Change link Path

  1. #1
    Registered User
    Join Date
    07-09-2014
    Location
    Harvey, LA
    MS-Off Ver
    2007
    Posts
    29

    Macro To Change link Path

    Greetings:

    I have a spreadsheet that contains hyperlinks to 1200 documents on our server. Somehow, the links have changed to point of my local hard drive.

    I wrote a macro to erase the first portion of the link, (C:\Documents and Settings\Ralph Barnes\Application Data\Microsoft\Excel\), leaving the rest of the link that points correctly to the document on our server (CIRs\Open CIRs\2014\CIR 1-14 Vendor Error - Greenville.pdf), but when I apply the macro to another cell, instead of keeping the rest of the link relative to the document it points to.ie CIR 2-14 ...etc. , the macro copies the document # from the cell I was in when I wrote the macro.

    Is there any way to have the macro erase just a portion of a link and leave the rest as is?

    LINK AS IT IS NOW: C:\Documents and Settings\Ralph Barnes\Application Data\Microsoft\Excel\CIRs\Open CIRs\2014\CIR 1-14 Vendor Error - Greenville.pdf

    LINK I NEED MACRO TO PRODUCE: CIRs\Open CIRs\2014\Keep the rest of the link as it is in the cell I am in, instead of copying the cell the macro was written in.

    I've attached a portion of the spreadsheet.

    Thanks for any assistance you may be able to offer.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,177

    Re: Macro To Change link Path

    Please Login or Register  to view this content.

+ 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. Need to redirect path folder link if a cell change
    By tantcu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-21-2013, 02:53 AM
  2. Change Link Macro (being used twice) is changing output to an incorrect path
    By Welrod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-27-2013, 02:30 PM
  3. Replies: 1
    Last Post: 11-01-2009, 05:01 AM
  4. [SOLVED] Change link path disappears
    By don in forum Excel General
    Replies: 1
    Last Post: 06-07-2006, 01:00 AM

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