Utilizei recentemente e funciona sem problemas.
;-)
Original em:
http://www.vbforums.com/showthread.php?815681-List-files-from-zip-file-(vba)
Private Sub CommandButton1_Click() zpath End Sub Sub zpath() Dim sh, n Dim PathFilename As Variant Dim FileName As String FileName = "temp.sql" PathFilename = Application.GetOpenFilename("ZipFile (*.zip), *.zip") If PathFilename = "False" Then Exit Sub TextBoxPath.Value = PathFilename Set sh = CreateObject("shell.application") Set n = sh.Namespace(PathFilename) recur sh, n End Sub Sub recur(sh, n) Dim i, subn For Each i In n.items If i.isfolder Then Set subn = sh.Namespace(i) recur sh, subn Else Debug.Print i.Path End If Next End Sub
Nenhum comentário:
Postar um comentário