Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Un-Zip with VBA

Status
Not open for further replies.

SgtPepps

IS-IT--Management
May 1, 2002
109
GB
This isn't important but is anyone aware of a way to automate un-zipping files using VBA. I could use SendKeys but that would be a horrendous way of doing it.

Mike

Hold the Wheel and drive
 
Mike,
I posted the same question about 2 weeks ago, see the responses on this below.

Several options, but the one I would tend to use is embed a call using WScript.

See:


Provides a brief code snippet.

Hope this helps.
DougCranston

goto the winxip website and look for the command line addin download...



example:

shell "c:\program files\winzip\wzzip C:\my_zip_path\my_zip_file.zip c:\my_path\my_name.TXT"

...you may need to pause the vba code execution when using this command. if so look to this FAQ

FAQ707-2542

The answer of your stated question/problem:
--------------------------------------------
Pack and unpack an Excel-Workbook with WinZip

Other related info:
----------------------
Using ShellExecute to start any program or short cut from inside VBA

Executing notepad using VB in Excel

Shell Statement v1.0

What command line parameters does WinZip support?

WinZip Command Line Support Add-On

Hope this helps.
DougCranston



Thanks Rob.[yoda]
 
Good Man! thankyou for your responce and sorry for my missing your previous post. I'll let you know how i get on.

Mike

Hold the Wheel and drive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top