Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have been trying to embed a text file like we can do with Word files.

  1. Go to Insert >> Object
  2. Check the box which says "Insert as a link"

At this instance, there is no option for text files. I can achieve this with Word files but not with txt and mht files.

I need to embed those in my Word document and do not want to send a dozen files across along with the document.

thanks.

share|improve this question

4 Answers 4

up vote 1 down vote accepted

Unfortunately, text (.txt) files and .mht files are not 'objects' in the sense of what Microsoft Office considers to be an embeddable object.

share|improve this answer

A simple copy/paste of the text files should do the trick.

Locate the text files on your computer, select the specific files, right click your mouse and select copy, go to your word document, and paste in there, the text files will be embedded. This worked for me in Word 2007

share|improve this answer

I'm unsure which version of Word you're using, but here's how you can do it in 2010:

  1. Go to the Insert tab on the ribbon
  2. In the Text section of the Insert tab, choose the drop-down option beside the Object button
  3. Choose Text from File
  4. Navigate to your text file and select it with one mouse click (do not insert it yet)
  5. Press the drop-down on the Insert button, and select Insert as Link

Your .txt file is now inserted as a field. After you update the file, click the field in your word document and press F9 to see the new text. To update all fields at once, select the whole document (Ctrl+A) then press F9.

Alternate method:

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

Note that \* MERGEFORMAT is only necessary if you want the field to assume the formatting of the surrounding text.

share|improve this answer

You can use 'insert as a link' and then also check the 'Display as a icon' option, and choose the TXT file icon from the following location:

C:\WINDOWS\system32\shell32.dll
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.