+ Reply to Thread
Results 1 to 9 of 9

Fixing multiple hyperlinks

  1. #1
    Registered User
    Join Date
    02-27-2007
    Location
    Barrie, Ontario (formerly Penperlleni, Cymru)
    Posts
    22

    Fixing multiple hyperlinks

    I've just got back to my office after working away for a couple of weeks and now my large spreadsheet has lost all it's hyperlinks.

    I think a co-worker saved the sheet incorrectly for it to do this but I'm looking to fix it back to the way it was before I went away without changing every single link one at a time.

    They used to point to the server I work from but now they are directing to AppData\Roaming\Microsoft\etc....

    Thanks

    Beanie

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Fixing multiple hyperlinks

    Please Login or Register  to view this content.
    Save a copy off before you run this to make sure you don't destroy your file.
    Then change the sOld and sNew to whatever it needs to be.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    02-27-2007
    Location
    Barrie, Ontario (formerly Penperlleni, Cymru)
    Posts
    22

    Re: Fixing multiple hyperlinks

    Thanks Mike, but I'm going to need you to spell this out for me. How do I apply this to the workbook? I haven't the first clue about code and macro's etc.

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Fixing multiple hyperlinks

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button


    But again, you need to change the sOld and sNew first.

  5. #5
    Registered User
    Join Date
    02-27-2007
    Location
    Barrie, Ontario (formerly Penperlleni, Cymru)
    Posts
    22

    Re: Fixing multiple hyperlinks

    Thanks Mike. I'm very confused about the old and new part.

    Old link is C:\Users\localcrew\AppData\Roaming\Microsoft\2016\6 June 2016\Crew Calls\Outs\Crew Call Sheet 29th June 2016.pdf
    New link is G:\Administration\2016\7 July 2016\Crew Calls\Ins\Crew Call Sheet 29th June 2016.xlsx

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Fixing multiple hyperlinks

    Now I am confused. You are changing the link from a PDF to a XLSX?

    I thought you were just redirecting to another folder for a group of hyperlinks
    Last edited by mikeTRON; 07-27-2016 at 03:03 PM.

  7. #7
    Registered User
    Join Date
    02-27-2007
    Location
    Barrie, Ontario (formerly Penperlleni, Cymru)
    Posts
    22

    Re: Fixing multiple hyperlinks

    Sorry, my bad. I'll try again:-

    Old link is C:\Users\localcrew\AppData\Roaming\Microsoft\2016\6 June 2016\Crew Calls\Outs\Crew Call Sheet 29th June 2016.pdf
    New link is G:\Administration\2016\6 June 2016\Crew Calls\Outs\Crew Call Sheet 29th June 2016.pdf

    Basically I have a ton of links directed to different directories. Some are .xls files and some are .pdf's

  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: Fixing multiple hyperlinks

    Right so what is the INCORRECT portion of the OLD link?
    "C:\Users\localcrew\AppData\Roaming\Microsoft\"

    Is it that?

    If so the following should work for you.
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    02-27-2007
    Location
    Barrie, Ontario (formerly Penperlleni, Cymru)
    Posts
    22

    Re: Fixing multiple hyperlinks

    Hi Mike

    That code isn't helping. After running the macro, when I hover over the hyperlink, the highlighted text appears
    to be pointing in the right direction. When I click on the hyperlink I get the cannot find the specified file pop up.

    The part I'm not understanding here is by running this code how I can change multiple links.

    My workbook is basically an hours log. Each date has a hyperlink to estimated hours for that day which points to a .xls file,
    then I have an actual hours which points to a .pdf file. So as it is date specific I don't understand how it's possible to
    change, an entire calendar then if you like, by running this code which appears to be specific to one file.

    I also have other hyperlinks which point to shows we have worked and invoices for costings per show. These are also .pdf and .xls
    files respectively.

    Regards

    Beanie

+ 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. Multiple Hyperlinks - Multiple Downloads in a similar format
    By Callumpwm in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2016, 10:49 AM
  2. Replies: 0
    Last Post: 06-25-2015, 07:15 AM
  3. Find Hyperlinks, Copy Hyperlinks to alternative sheet, print all hyperlinks
    By matrixpom in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-13-2013, 05:13 PM
  4. Fixing broken HTML hyperlinks
    By kevmartin in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-10-2011, 02:03 AM
  5. help fixing my macro from running multiple times
    By MurseBry in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-19-2010, 02:17 AM
  6. Multiple If Statement Help-Fixing Formula Syntax
    By vargs in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-09-2010, 10:09 AM
  7. [SOLVED] Fixing broken hyperlinks in Excel workbook
    By Dick_Y in forum Excel General
    Replies: 2
    Last Post: 02-24-2005, 06:06 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