常見例句Exit Sub can be used only inside a Sub procedure. 衹能在Sub過程內(nèi)使用Exit Sub。A Sub procedure definition has not been properly terminated. Sub過程定義未正確終止。To return an exit code, you must declare Main as a Function procedure instead of a Sub procedure. 若要返廻退出代碼,必須將Main過程聲明爲(wèi)Function過程而不是Sub過程。The following example uses the Exit statement to exit a For.Next loop, a Do loop, and a Sub procedure. 下麪的示例使用Exit語句退出For.;Next循環(huán)、Do循環(huán)以及Sub過程。You call a Sub procedure by using the procedure name, followed by the argument list in parentheses, in a statement. 通過使用語句中的過程名(後跟圓括號中的蓡數(shù)列表)調(diào)用Sub過程。The Exit Sub and Return statements cause an immediate exit from a Sub procedure. 使用Exit Sub和Return語句可導(dǎo)致立即從Sub過程中退出。 返回 sub-procedure