HELP!! need to automate ZIP file creation...

bapcki1

New Member
Joined
Nov 12, 2011
Messages
39
Hi Everybody,

I was wondering whether anybody could help me ZIP files using Excel VBA and the windows .ZIP file creator please?

In Cell:

A1, File name and file path 1 to be zipped
A2, File name and file path 2 to be zipped
A3, File name and file path 3 to be zipped
A4, Name of ZIP file to be created containing Files stated in A1,A2 and A3
A5, File path of where newly created ZIP file (A4) is to be saved.

The files that need to be zipped are .psr files.


If anybody can help, that would be amazing as I have many, many ZIP files that need creating every month at work and I am currently doing it manually :( .
I can't download other ZIP file creators either so I have to use what Windows has already.


THANK YOU!!

Paddy
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.

Hi Kyle123,

Thank you for the rapid response!

I have already taken a look at that code.
I didn't fully understand how I could alter it to my needs:


- I dont believe it gives you the option to specify the file names and file paths in cells.
- How to edit the line:

Code:
[COLOR=#000080]FName = Application.GetOpenFilename(filefilter:="Excel Files (*.xl*), *.xl*", _
[/COLOR][COLOR=#000080]                    MultiSelect:=True, Title:="Select the files you want to zip")[/COLOR]
so that it will compress .psr's.


Any help?

Many thanks,

Paddy
 
Upvote 0

Forum statistics

Threads
1,216,743
Messages
6,132,464
Members
449,729
Latest member
davelevnt

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top