VBA script to Unzip Files - It's Just Creating Empty Folders

后端 未结 1 1803
庸人自扰
庸人自扰 2021-01-21 23:47

I\'m using the code by Ron (http://www.rondebruin.nl/win/s7/win002.htm) to, in theory, unzip a bunch of zip files in a folder. I believe what I have below is the code that takes

相关标签:
1条回答
  • 2021-01-22 00:15

    The problem is you are not giving windows enough time to extract the zip file. Add DoEvents after the line as shown below.

    TRIED AND TESTED

        oApp.Namespace(FnameTrunc).CopyHere oApp.Namespace(Fname).items
        DoEvents
    
    0 讨论(0)
提交回复
热议问题