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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automate winzip via VBA coding

Status
Not open for further replies.

oneillst

Programmer
Feb 19, 2003
5
AU
Does anyone know how to use winzip to compress files via vba coding in an efficient manner. Our reports are often too big to handle via email and currently a sendkeys operation acheives the desired result but it occassionly does not compress all the required files.
 
Hiya,

there's some code here that might be useful - it doesn't use Shell but uses AIPs OpenProcess and WaitForSingleObject to call Winzip using VBA to unpack / pack an Excel file. The code = for a single file, but can be easily adapted to handle more files

HTH

Cheers
Nikki
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top