Excel VBA Periksa apakah ada direktori
Public Function IsDir(s)
IsDir = CreateObject("Scripting.FileSystemObject").FolderExists(s)
End Function
Excel Hero
Public Function IsDir(s)
IsDir = CreateObject("Scripting.FileSystemObject").FolderExists(s)
End Function
If Dir("C:\Temp\xxx", vbDirectory) = "" Then
MsgBox "Doesn't exists"
End If