I wrote the following code to import TXT files in a ZIP file to excel. To do this I have to be able to unzip the file first.
I use:
ShellApp = CreateObject("Shell.Application")
ShellApp.Namespace(unzipToPath).CopyHere
ShellApp.Namespace(Filename).items
to do so but it keeps returning
error 91
The namespace contains Filename as a variable because I am looping through a list of file names in my workbook.
I hope this discription is clear and you guys are able and willing to help me out. If you guys needs any additional information please let me know.