level 2
请问如何避免呢?或者是b=0了,给个提示也行啊,而不是程序退出。怎么设置?谢谢。
2008年08月12日 13点08分
2
level 1
在开头加这句On Error Resume Next
2008年08月12日 13点08分
3
level 1
if b=0 then msgbox "b can't be 0": exit sub
2008年08月12日 13点08分
4
level 1
on error goto errhandler'codeexit suberrhandler:msgbox "error!b can't be 0"
2008年08月13日 06点08分
6