Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1013 Bytes

elseif-must-be-preceded-by-a-matching-if-or-elseif-and-followed-by-an-elseifelse.md

File metadata and controls

23 lines (15 loc) · 1013 Bytes
title keywords f1_keywords ms.assetid ms.date ms.localizationpriority
ElseIf must be preceded by a matching If or ElseIf and followed by an ElseIf, Else, or EndIf
vblr6.chm1057023
vblr6.chm1057023
f6ded2b0-e05b-643e-6599-9cf3ed592a7d
06/08/2017
medium

ElseIf must be preceded by a matching If or ElseIf and followed by an ElseIf, Else, or EndIf

ElseIf is a conditional compilation directive. This error has the following causes and solutions:

  • An #elseif has been detected that isn't preceded by an #if or #elseif. Place an #if statement before the #elseif or remove an incorrectly placed preceding #endif.

  • An #elseif has been detected that is preceded by an #else or #endif. Appropriately terminate the preceding #if block, or change the preceding #else to an #elseif.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

[!includeSupport and feedback]