Ark68
Well-known Member
- Joined
- Mar 23, 2004
- Messages
- 4,570
- Office Version
- 365
- 2016
- Platform
- Windows
I am trying to delete a folder using this code...
But I am getting an error ("User-defined type not defined") when it encounters the declaration statement for FSO.
Thoughts?
VBA Code:
Dim FSO As New FileSystemObject
Set FSO = CreateObject("scripting.filesystemobject")
FSO.deletefolder dpath
But I am getting an error ("User-defined type not defined") when it encounters the declaration statement for FSO.
Thoughts?