1. 用一个API判断文件是否已存在:SHFileExists
commonDialog.showsave
if shfileexists(commonDialog.filename)=1 then
msgbox "文件已存在",,"错误"
Exit Sub
end if
2.不懂^^
commonDialog.showsave
if shfileexists(commonDialog.filename)=1 then
msgbox "文件已存在",,"错误"
Exit Sub
end if
2.不懂^^
cdlOFNPathMustExist &H800 指定用户可只输入有效的路径。如果设置该标记且用户输入无效路径,则出现一个警告消息。