1

This answer describes how to embed a text file via a link to the file in MS Word as follows:

  1. Place your cursor where you want the file inserted
  2. Press Ctrl+F9
  3. Type { INCLUDETEXT "C:\\path\\to\\file.txt" \c AnsiText }. Do not type the brackets. Do type the double-backslashes.
  4. Press F9

I would like to know if it is possible to use a relative link. In the example the link is absolute.

I have tried using the filename field ({INCLUDETEXT "{FILENAME \\p}\\..\\..\\header.txt"}) as suggested at www.msofficeforums.com, but it didn't wrok for me using MS Office Pro 2016.

  • As posted, you have two backslashes before the "p" switch in the FILENAME field and you have and extra "dot dot backslash backslash" sequence in the path name that probably should not be there. – user1079414 Apr 6 '20 at 19:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.