Code:
Dim f As Boolean
Sub AAA()
Dim FSO As Scripting.FileSystemObject
Dim FF As Scripting.Folder
f = False
Set FSO = New Scripting.FileSystemObject
Set FF = FSO.GetFolder("C:\Users\<username>\Desktop\testje")
DoOneFolder FF
If Not f Then
MsgBox "File not found!", vbExclamation
End If
Leave a comment: