Microsoft KB Archive/66746

Word: Cannot Use Destination Document in Include Instruction

PSS ID Number: Q66746 Article last modified on 11-02-1994

5.50 6.00

MS-DOS

= SUMMARY =

In Microsoft Word version 5.5 if the print merge “new document” name is the same filename that is used in an include statement, the following error message will result:

Do you want to overwrite the existing file?

If the response to this question is “Yes,” another error message will appear in the message bar at the bottom of the screen (Show Message Bar from the View Preferences menu needs to be selected). The message is as follows:

The destination document cannot be used in INCLUDE or WHILE statements.

Answering “Yes” to overwrite the existing file overwrites the existing included file with the results of the print merge. The original contents of the included file are overwritten (deleted).

Example
Type the following in the main document:

<>

Choose Print Merge from the File menu and select New Document. In the “Document Name:” field, type “TEST.DAT.” Choosing to overwrite the existing file will cause the TEST.DAT file to be overwritten with the print merge results. KBCategory: kbother kberrmsg KBSubcategory: kbmerge Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.