Copy Files to A Compressed Folder

jexline

New Member
Joined
Oct 19, 2009
Messages
7
I am trying to put several files into a zipped file (Windows Vista uses compressed folders) inside of my VB coding.

I have tried making a folder with a ".zip" extension and copying files into it. The result was not a compressed folder. I have looked for a way to address with file attributes, but cannot find any references.

Can anyone help?
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
True, but I am "zipping" a set of financial statements to be emailed out to users. In order for this code to work, then end users would have to have an object to run the "unzip" function.

That is why I was trying to use Window's compressed folder functionality.

However, I have run into a second stumbling block, evidently the Outlook runtime library does not allow me to attach a folder (even a zipped one) to an email, only a file.

So for now, I just have my code looping through and attaching the filed one by one.

(not very efficient)
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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