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