One Way:
Sub LoopFiles()
Dim sfName As String
Const sDir As String = "C:\ZippedFiles\"
Const sDestination As String = "C:\Unzipped\"
sfName = Dir(sDir & "*.zip")
Do While Len(sfName) > 0
zipExtract sDir & sfName, sDestination & Left(sfName, Len(sfName) - 4) & "\"
'Kill sDir & sfName - You can uncomment this to delete the zip files once teste
sfName = Dir
Loop
End Sub
Sub zipExtract(sFilename, sDestinationDirectory)
If Right(sDestinationDirectory, 1) <> "\" Then sDestinationDirectory = sDestinationDirectory & "\"
On Error Resume Next
MkDir sDestinationDirectory
With CreateObject("Shell.Application")
.Namespace(sDestinationDirectory).Copyhere .Namespace(sFilename).Items
End With
End Sub
Bookmarks