在下面的代码中,我希望在运行子code()时,当condition等于false时,它将结束子test(),而不是显示消息"hello"并停止所有脚本。有人能告诉我怎么做吗?Private Sub test() MsgBox ("Hello") If Condition =False Then MsgBox ("Hello World"
我已经尝试了Exit函数和Exit For。到达Ubound(arr)语句后,我将重置为i=0,调用堆栈恢复为End Select语句,此后For循环再次开始。这必须来自我执行的递归行?Object, Optional ByVal i As Integer = 0) Select Case VBA.TypeNameIf Not IsEmpty(obj) And i = UBound(arr) Then E