Microsoft KB Archive/40385

From BetaArchive Wiki

Word Err Msg: Missing ENDIF

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

4.00 5.00 5.50 6.00


The information in this article applies to:
- Microsoft Word for MS-DOS versions 4.0, 5.0, 5.5, 6.0


In Microsoft Word for MS-DOS versions 5.5, 6.0 the error message:

An ENDIF instruction must follow an IF instruction

or in Micrsoft Word versions 4.0 and 5.0 the error message:

Missing ENDIF

indicates that a macro or Print Merge contains an IF or IF…ELSE instruction without an ENDIF. To correct this error in a print merge, do the following:

  1. Press ESC to cancel Print Merge.
  2. Add the ENDIF instruction at the end of the text to be inserted conditionally, or edit the macro to include the matching ENDIF.

To correct this error during a macro use Macro Edit.

KBCategory: kbother kberrmsg kbmacro KBSubcategory: kbmerge Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.