📜  excel vba是否存在文件 - VBA代码示例

📅  最后修改于: 2022-03-11 14:51:54.853000             🧑  作者: Mango

代码示例1
' Existence of a file 
If Dir("C:\myDirectory\myFile", vbDirectory) = vbNullString Then
    MsgBox "Doesn't exists"
Else
    MsgBox "Exists"
End If