Check if Folder Exists or not using filesystem Object
Check if Folder Exists or not using filesystem Object
Rate Check if Folder Exists or not using filesystem Object
(2(2 Vote))
Public Function FolderExists(DirPath As String) As Boolean
On Error GoTo FolderErr
'Declare File System Object
Dim fso As Object
'Create File System Object
Set fso = CreateObject("Scripting.FileSystemObject")
'Check Wheather Folder exists or not
FolderPathExists = fso.FolderExists(sDir)
Exit Function
FolderErr:
MsgBox Err.Description, vbCritical, "Error "
FolderPathExist = False
End Function
'Please if any feedback let me know my email is [email protected]
'[email protected]
Check if Folder Exists or not using filesystem Object Comments
No comments yet — be the first to post one!
Post a Comment