如題﹐
if ... then 
...
else if 下邊還沒寫就提示出錯﹐用
else
if ...then 就沒事。

解决方案 »

  1.   

    else if 下邊還沒寫就提示出錯﹐用
    ----------------------------------
    else和if要连在一起:elseif
      

  2.   

    If condition1 Then
        [statementblock-1]
    [ElseIf condition2 Then
        [statementblock-2]] ...
    [Else
        [statementblock-n]]
    End If
      

  3.   


    If condition1 Then
        [statementblock-1]
    [ElseIf condition2 Then
        [statementblock-2]] ...
    [Else
        [statementblock-n]]
    End If