Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 11th, 2004, 09:10 AM
ppenn
Guest
 
Posts: n/a
Default Saving as zip

Hi
I have an Excel file that is quite large and has to be saved across a network. It has been set up so that a user just has to press a button and it is saved. Is it possible to save it has a zip file and then save that file across the network from vba? That will then reduce the size of the file by about a fifth and consequently work better
Cheers
Peter

 
Old March 11th, 2004, 09:25 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

It used to be the case that if you had WinZip you could also download a version that could run from command line, not sure if you still can though. You could also search for "zip command line" on Google. Then you can use the Shell command:

Shell "Zipper.exe <pathToExcelFile> <nameOfOutputDocument>"

--

Joe
 
Old March 11th, 2004, 05:15 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 344
Thanks: 0
Thanked 1 Time in 1 Post
Default

A quick test using WinZip on my machine indicates that you can't ZIP a file that is currently open.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Zip a folder vinugeorge .NET Framework 2.0 2 June 29th, 2005 06:33 AM
EXCEL question saving a file saving the the first macupryk VS.NET 2002/2003 0 January 6th, 2005 05:33 PM
How To avoid the SAving of toolbars while saving Hari_Word Excel VBA 6 July 26th, 2004 12:13 AM
Zip File Exodus Access VBA 1 December 29th, 2003 11:45 AM
zip alihussein3 Javascript How-To 2 September 11th, 2003 12:34 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.