If Option1 = True Then
MsgBox ("谢谢,我就喜欢听这话,你真的很有眼光,呵呵 ^_^")
If Option2 = True Then
MsgBox ("呵呵,这话也就算了,我想你可能没看全,再好好看看!^O^")
If Option3 = True Then
MsgBox ("小样,小找茬是吧?不想死就重选~!-_-")
If Option4 = True Then
MsgBox ("啥也别说了,放学厕所等着我吧……")
End If运行时出来错误,是if块没有End if 这是怎么回事?

解决方案 »

  1.   

    晕,你这么多if只有一个end if啊
    If Option1 = True Then
    MsgBox ("谢谢,我就喜欢听这话,你真的很有眼光,呵呵 ^_^")
    end if
    If Option2 = True Then
    MsgBox ("呵呵,这话也就算了,我想你可能没看全,再好好看看!^O^")
    end if
    If Option3 = True Then
    MsgBox ("小样,小找茬是吧?不想死就重选~!-_-")
    end if
    If Option4 = True Then
    MsgBox ("啥也别说了,放学厕所等着我吧……")
    End If
      

  2.   

    If Option1 = True Then
    MsgBox ("谢谢,我就喜欢听这话,你真的很有眼光,呵呵 ^_^")
    elseIf Option2 = True Then
    MsgBox ("呵呵,这话也就算了,我想你可能没看全,再好好看看!^O^")
    elseIf Option3 = True Then
    MsgBox ("小样,小找茬是吧?不想死就重选~!-_-")
    elseIf Option4 = True Then
    MsgBox ("啥也别说了,放学厕所等着我吧……")
    End If
      

  3.   

    多学习一下吧,这个也有问题If Option1 = True Then
    MsgBox ("谢谢,我就喜欢听这话,你真的很有眼光,呵呵 ^_^")
    elsIf Option2 = True Then
    MsgBox ("呵呵,这话也就算了,我想你可能没看全,再好好看看!^O^")
    elseIf Option3 = True Then
    MsgBox ("小样,小找茬是吧?不想死就重选~!-_-")
    elseIf Option4 = True Then
    MsgBox ("啥也别说了,放学厕所等着我吧……")
    else
    MsgBox ("等我K你吧……")
    End If
      

  4.   

    楼主的语句有问题 可以改进一下
    if语句应该有end if语句块
    楼主可以这样写:
    If Option1 = True Then
    MsgBox ("谢谢,我就喜欢听这话,你真的很有眼光,呵呵 ^_^")
    End If
    If Option2 = True Then
    MsgBox ("呵呵,这话也就算了,我想你可能没看全,再好好看看!^O^")
    End If
    If Option3 = True Then
    MsgBox ("小样,小找茬是吧?不想死就重选~!-_-")
    End If
    If Option4 = True Then
    MsgBox ("啥也别说了,放学厕所等着我吧……")
    End If
      

  5.   

    没有End if也可以,写在一行就可以了:
    If Option1 = True Then MsgBox ("谢谢,我就喜欢听这话,你真的很有眼光,呵呵 ^_^")
    If Option2 = True Then MsgBox ("呵呵,这话也就算了,我想你可能没看全,再好好看看!^O^")
    If Option3 = True Then MsgBox ("小样,小找茬是吧?不想死就重选~!-_-")
    If Option4 = True Then MsgBox ("啥也别说了,放学厕所等着我吧……")
    '去掉最后的End If
      

  6.   

    没有返回值,MsgBox应去掉括号
    MsgBox "谢谢,我就喜欢听这话,你真的很有眼光,呵呵 ^_^"