vba folderexists code example Example: vba folderexists If Dir("C:\Temp\xxx", vbDirectory) = "" Then MsgBox "Doesn't exists" End If