Hello guys,
I have a code where it will unzip specific file based on file path provided. But I want to unzip all zip files present in the folder.
I have a code where it will unzip specific file based on file path provided. But I want to unzip all zip files present in the folder.
VBA Code:
Public Sub Unzip()
Dim localZipFile As Variant, destFolder As Variant
Dim Sh As Object
localZipFile = "C:\folder\path\test.zip"
destFolder = "C:\folder\path\"
Set Sh = CreateObject("Shell.Application")
With Sh
.Namespace(destFolder).CopyHere .Namespace(localZipFile).Items
End With
End Sub