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

   

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

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