Why is this error in the code?
Dim FSO, folder, subFlds, fld, ParentFolder, path
Dim oFSO As Object
Set oFSO = CreateObject("Scripting.FileSystemObject")
ParentFolder = oFSO.GetFile(ActiveWorkbook.FullName).ParentFolder.ParentFolder.path
path = ParentFolder + "\Base de Datos\"
Set FSO = CreateObject("Scripting.FileSystemObject")
Set folder = FSO.GetFolder(path)
Set subFlds = folder.SubFolders
For Each fld In subFlds
List1.AddItem fld.Name
Next