Results 1 to 6 of 6

Change path in Linked Fields (for word links to excel)

Threaded View

  1. #1
    Registered User
    Join Date
    01-25-2022
    Location
    Massachusetts
    MS-Off Ver
    365 Pro
    Posts
    7

    Change path in Linked Fields (for word links to excel)

    I'm new here and could really use a little help! I have a source xlsx with many docx linked to it. All files are in the same folder. I'd like to copy/paste this folder into a new location and have the source path to .xlsx automatically update to new location. Unfortunately, this simple idea does not have a simple fix (that I have found).

    I've installed the macro from note 3 of "Word Fields and Relative Paths to External Files" by macropod (sorry, new user, can't post link to forum yet) into my word doc but it is not working. (I'm using windows 10 with MS 365 for business, all applicable files are in same folder)

    Here are my steps:

    1. Open docx and save as docm, import the macro, save docm
    2. close all word and excel files.
    3. copy files to new location
    4. open moved docm, this prompts the following errors:

    "Sorry, Excel can't open two workbooks with the same name at the same time." (pops up twice, then)

    "Run-time error '6083':
    Objects in this document contain links to files that cannot be found.
    The linked information will not be updated."

    (click debug) goes to VBA code line: ".SourceFullName = Replace(.SourceFullName, OldPath, NewPath)"

    As part of my troubleshooting I've got it to barely work for small docs.
    If, after I move the files, I open the moved xlsx file first, then the moved docm, it prompts the same error:
    "Sorry, Excel can't open two workbooks with the same name at the same time." but this time it pops up MANY times (20+, seems dependent on # of links)
    If I can click through all the popups the macro is effective and the link paths are updated. Unfortunately, some of the bigger docs have hundreds of links and I just can't click through all the error boxes.

    It seems like it's so close, maybe I just have a word or excel option toggled differently than default? Any help is really appreciated, it would be so helpful if it worked better!
    Last edited by chriskarney; 01-26-2022 at 01:26 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How can I get Excel to automatically change file path links?
    By iupsk in forum Excel General
    Replies: 2
    Last Post: 12-17-2021, 08:19 AM
  2. Path change in a linked excel files.
    By hanymos in forum Excel General
    Replies: 1
    Last Post: 03-08-2015, 02:11 AM
  3. How to copy linked Excel and Word files and retain links
    By ashleynpeters1 in forum Excel General
    Replies: 7
    Last Post: 05-30-2013, 08:27 PM
  4. Replies: 1
    Last Post: 05-14-2009, 11:01 AM
  5. Replies: 2
    Last Post: 11-21-2005, 09:15 AM
  6. [SOLVED] Change path links in Excel from VBA
    By Ricardo García in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-30-2005, 11:05 PM
  7. [SOLVED] How to change (Excel) source of all linked objects in a word docu.
    By Wheelwater in forum Excel General
    Replies: 1
    Last Post: 04-23-2005, 08:09 AM

Tags for this Thread

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