You dont need to reference F.S.O., try this instead...
Private Sub Command1_Click()
MsgBox DirExists ("C:\windows"
End Sub
Public Function DirExists(ByVal Directory As String) As Boolean
If Dir(strPath, vbDirectory) <> "" Then DirExists = True dir exists
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.