Hi all,
I’ve been trying to use the macro posted by macropod here:
http://windowssecrets.com/forums/showthread//154379-Word-Fields-and-Relative-Paths-to-External-Files
…to link excel worksheets to my Word document and have the links automatically updated when the containing folder is moved.
Somehow I always get an error telling me that a file with the name of my Excel document is already open. This message pops up a couple of times, then I get a runtime error from the code. I ran the code step by step and all of the filepaths are ok, but still I get the error when running the replace() function.
I really tried everything I could think of, without luck.
FYI, the Word and the Excel documents are side by side. Only the containing folder is meant to change place
Also, here is an example of the links I have:
{ LINK Excel.Sheet.12 OldPathSpreadSheet.xlsx WorkSheet!L1C1:L17C4 a f 4 h }
Any ideas?
Thanks so much,
20Syl