【2】VBA运行中报错信息设置error,err 3)如何在新的工作簿里直接调用另一个工作簿的SUB程序 http://club./thread-1057861-1-1.html BBS:Sub Macro1() ? ? Dim wb As Workbook ? ? On Error Resume Next ? ? Set wb = Workbooks(ThisWorkbook.Path & "\b.xls") ? ? If wb Is Nothing Then Set wb = Workbooks.Open(ThisWorkbook.Path & "\b.xls") ? ? On Error GoTo 0 ? ? Application.Run "'b.xls'!模块1.宏1" End Sub 2)If Not c Is Nothing Then 是什么意思? http://club./thread-78483-1-1.html find语句中如没有找到指定字符,就直接结束、跳出if-endif语句。如找到指定字符,仍循序执行if-endif内的各语句。 1)宏运行过程中,即使出错,也不出现报错提示信息,继续执行一条语句。 On Error Resume Next 1.1)/https://wenda.so.com/q/1384538366064828 在需要取消的地方,放下面这句就可以了: On Error GoTo 0 GoTo 0 就表示从这里开始取消错误捕捉,并不需要存在 0: 的标志。 1.2)vba怎么让find没有返回值的时候查找下一个目标/3# http://club./thread-1343263-1-1.html if not rng is nothing then 3)err用法/https://blog.csdn.net/erix1991/article/details/16116165 4)On Error略解 https://blog.csdn.net/kajweb/article/details/50659691 【】 |
|
来自: c857084163 > 《Excel》