Microsoft KB Archive/67846

Word 5.50: Included File Overwritten During Print Merge

PSS ID Number: Q67846 Article last modified on 02-16-1995

5.50 6.00

MS-DOS

= SUMMARY =

In Microsoft Word when using an INCLUDE statement in conjunction with performing a print merge to a new document, the following error message will result if the new document name is the same as the included filename:

Do you want to overwrite the existing file?

In Word version 5.5 if you select OK, the contents of the included file will be overwritten and the following error will appear in the message bar and the included file:

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

In Word version 6.0, the file referenced in the INCLUDE statement will be overwritten with the Print Merge document of the same name.

Example
In your main document, type the following:

<>

Choose File Print Merge New Document and type XXX.DAT as the document name. When prompted to overwrite the existing file, select OK to overwrite the contents of XXX.DAT.

Microsoft has confirmed this to be a problem in Word version 5.50. We are researching this problem and will post new information here as it becomes available.

KBCategory: kbother kberrmsg KBSubcategory: kbmerge Additional reference words: overwrite existing error message new document while ============================================================================= Copyright Microsoft Corporation 1995.