#ElseIf is a conditional compilation directive. This error has the following causes and solutions:
Place an #If statement before the #ElseIf or remove an incorrectly placed preceding #End If.
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).