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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,214,826
Messages
6,121,794
Members
449,048
Latest member
greyangel23

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