Table of contents
TOC
折叠目录
展开目录

在不具有错误(错误 20)的情况下恢复Resume without error (Error 20)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

Resume语句只能出现在错误处理程序,只可当活动的错误处理程序中执行。此错误有以下的原因和解决方案:A Resume statement can only appear within an error handler and can only be executed in an active error handler. This error has the following causes and solutions:

  • 放置在错误处理代码之外Resume语句。将该语句移到错误处理程序,或将其删除。You placed a Resume statement outside error-handling code. Move the statement into an error handler, or delete it.

  • 即使没有错误,您的代码跳转到错误处理程序。也许您拼写错误行标签。中的过程,不能出现到标签的跳转所以搜索过程中的有标识错误处理程序标签。如果找到指定为目标的GoTo语句不是On Error GoTo语句的重复标签,更改行标签同意其预定的目标。Your code jumped into an error handler even though there was no error. Perhaps you misspelled a line label. Jumps to labels can't occur across procedures, so search the procedure for the label that identifies the error handler. If you find a duplicate label specified as the target of a GoTo statement that isn't an On Error GoTo statement, change the line label to agree with its intended target.

有关其他信息,请选择相关项并按 F1(在 Windows 中)或 HELP(在 Macintosh 上)。For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

© 2018 Microsoft