Field codes: IncludeText field

The IncludeText field inserts the text and graphics contained in the document named in the field code. You can insert the entire document or a portion of the document referred to by a bookmark. This field (field: A set of codes that instructs Microsoft Word to insert text, graphics, page numbers, and other material into a document automatically. For example, the DATE field inserts the current date.) was formerly called the Include field.


 Notes 

Security  Because field codes can be visible to anyone reading your document, be sure that the information you place in field codes is not information that you want kept private.

Syntax

When you view the IncludeText field code in your document, the syntax looks like this:

{ INCLUDETEXT "FileName" [Bookmark ] [Switches ] }

 Note   A field code tells the field what to show. Field results are what is shown in the document after having evaluated the field code. To toggle between viewing the field code and the field code results, press Alt+F9.

Instructions

"FileName"

The name and location of the document. If the location includes a long file name with spaces, enclose it in quotation marks. Replace single backslashes with double backslashes to specify the path (path: The route that the operating system uses to locate a folder or file; for example, C:\House finances\March.doc.), for example:

"C:\\My Documents\\Manual.doc"

Bookmark

The name of a bookmark that refers to the portion of the Microsoft Word document you want to include.

Switches

\!

Prevents Word from updating fields in the inserted text unless the fields are first updated in the source document.

\c ClassName

Here are file format converters provided with Word and their corresponding class names:

WordPerfect version 6.x

WordPerfect6x

WordPerfect 5.x for Windows

WrdPrfctWin

Example

This field inserts the portion of the file referred to by the Summary bookmark:

{ INCLUDETEXT "C:\\Winword\\Port Development RFP" Summary }

 
 
Applies to:
Word 2013, Word 2010, Word 2007