WinZip

P

Paul

can i open a winzip file and extract a xl file using vba?
Say i have a file called 1058 and it is filed in a winzip
file called 1000,siilarly i could have a file called 6278
filed in a zip file called 6200.I find that if i use
Application.Findfile I can see the winzip files but cant
open em
 
R

Ron de Bruin

Hi Paul

You can use shell to unzip the zip file if you find them

Try this for unzip test.zip from to C:\

Sub test()
Shell "c:\program files\winzip\wzunzip c:\test.zip c:\"
End Sub
 
K

Keith Willshaw

Paul said:
can i open a winzip file and extract a xl file using vba?
Say i have a file called 1058 and it is filed in a winzip
file called 1000,siilarly i could have a file called 6278
filed in a zip file called 6200.I find that if i use
Application.Findfile I can see the winzip files but cant
open em

As others have said you can use shell with either PKzip
or Winzip. Alternatively you can use the Zlib dll available
from http://www.gzip.org/zlib/

or the vb code in unz550dN.zip at

http://www.mirror.ac.uk/sites/ftp.info-zip.org/pub/infozip/WIN32/

Keith
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top