excel vba 中文件已存在错误怎么处理?

2025-04-23 12:21:36
推荐回答(3个)
回答1:

先查找这个文件是否存在,如果存在,删除,再移动不就行了

回答2:

function test()
on error goto L_end
’功能代码
exit function'正常退出
L_end:'不正常退出
msgbox(err.discription)
end function

试试还会提示吗

回答3:

if err.number<>0 then ....
goto line
end if