A family of Microsoft word processing software products for creating web, email, and print documents.
For relative addresses in fields, see also Word Fields and Relative Paths to External Files by Paul Edstein, MVP.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hello,
Since support is not available from the MS 365 admin console, I hope someone here knows the solution:
We're trying to include some text from another word document. The initial syntax looks like this:
{INCLUDETEXT “docname.docx” bookmark}
This works fine until the document is closed and re-opened, when Word automatically changes the syntax to:
{INCLUDETEXT “docname.docx bookmark”}
Notice that the second quote symbol is moved to the end of the line, so naturally the functionality is broken (Error! Not a valid filename.), since the file "docname.docx bookmark" does not exist.
Has anyone resolved this problem?
Thanks, Gregor
A family of Microsoft word processing software products for creating web, email, and print documents.
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.
Answer accepted by question author
For relative addresses in fields, see also Word Fields and Relative Paths to External Files by Paul Edstein, MVP.
Answer accepted by question author
Responding to two of your issues:
The solution is: NEVER use the Edit Field dialog to look at an existing INCLUDETEXT field. Instead, click the Toggle Field Codes item in the context menu or press Shift+F9, and edit the code directly in the document. Yes, you can report this bug, but don't hold your breath waiting for Microsoft to fix it.
{ INCLUDETEXT ".\source.docx" sample \* MERGEFORMAT }
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
I cannot replicate the issue here.
What is the actual field argument that you are using? For example
{ INCLUDETEXT "C:\Users\dkr\Documents\16Macros.docx" MergeTools }
The only change here after displaying the result of the field, then saving, closing and reopening the host document and looking at the field code, it has inherited a bookmark of the same name as that in the field argument
Hi Gregor S.
Thank you for posting in this community and I am sorry for this inconvenience caused to you.
I can’t replicate the issue either. As you can see the below screenshot:
In this case, to narrow down this issue, it’s first recommended to create a new Word document to see the result. And you may try to go to Insert>Quick Parts>Field to add the field.
If the issue doesn’t occur in the new document, it means that your current document may be corrupted. Given this situation, you may try to copy and paste the content form the old one to the new one.
If the issue also happens to the newly created document, it means this issue should be related to your Word app. And you may try the following methods:
Method 1:
Please try to open Word in safe mode to troubleshoot whether the issue is caused by some add-ins. If you could open Office apps in safe mode, please try to temperately disable all add-ins referring to steps in this article: View, manage, and install add-ins in Office programs - Office Support (microsoft.com)
Method 2:
Please perform an Online Repair for Office.
If the above suggestions don’t help. Feel free to contact me.
And for a better understanding of your situation, may I confirm the following information?
Best Regards,
May