Share via

Relative path to linked objects

Anonymous
2010-12-22T22:45:16+00:00

Hello,

My basic question is as follows: Is there a way to insert an object in a Word document, which is linked to a file, but where the link path is relative and not absolute?   If I move my directory structure from one drive to another or if it moves up or down by even one directory all the links break.  It would be extremely useful if objects can be inserted with a relative path.

For example, assume that the word doc is in C:\projects\documents\the_doc.docx and a Visio file is in C:\projects\drawings\the_drawing.vsd

If, from the Insert Tab of Word I select "Object | From File" and click "Link to file", select the file, and insert it all is well.

If, for instance, the entire projects directory is moved from C:\ to a network drive S:\myname\projects the path to the linked file is no longer valid.  Double clicking on the drawing from the Word document, when located in the original path (C:) opens Visio and the drawing can be edited.  If the same action is performed from S:\myname the path is no longer valid.  If the path were relative then one could, from the word document, insert an object, linked to the file located in "..\drawings" and no matter where the directories are located, as long as the basic structure of the "projects" directory doesn't change, the file would be properly linked.

Does anyone know if this is possible?

Thanks,

Chris

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Doug Robbins - MVP - Office Apps and Services 323.1K Reputation points MVP Volunteer Moderator
2010-12-23T00:20:10+00:00

To see how to implement relative paths in Word, check out the solution that fellow MVP Macropod has posted at:

http://lounge.windowssecrets.com/ind...owtopic=670027

-- Hope this helps.

Doug Robbins - Word MVP,

dkr[atsymbol]mvps[dot]org

Posted via the Community Bridge

"thefudgeguy" wrote in message news:*** Email address is removed for privacy ***...

Hello,

My basic question is as follows: Is there a way to insert an object in a Word document, which is linked to a file, but where the link path is relative and not absolute?   If I move my directory structure from one drive to another or if it moves up or down by even one directory all the links break.  It would be extremely useful if objects can be inserted with a relative path.

For example, assume that the word doc is in C:\projects\documents\the_doc.docx and a Visio file is in C:\projects\drawings\the_drawing.vsd

If, from the Insert Tab of Word I select "Object | From File" and click "Link to file", select the file, and insert it all is well.

If, for instance, the entire projects directory is moved from C:\ to a network drive S:\myname\projects the path to the linked file is no longer valid.  Double clicking on the drawing from the Word document, when located in the original path (C:) opens Visio and the drawing can be edited.  If the same action is performed from S:\myname the path is no longer valid.  If the path were relative then one could, from the word document, insert an object, linked to the file located in "..\drawings" and no matter where the directories are located, as long as the basic structure of the "projects" directory doesn't change, the file would be properly linked.

Does anyone know if this is possible?

Thanks,

Chris


Doug Robbins - Word MVP dkr[atsymbol]mvps[dot]org

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful