Good day,
I am looking for a way to zip all of the files in a folder automatically. I found the following from Ron de Bruin, which is almost exactly what I need:
Zip file(s) with the default Windows zip program (VBA)
The section "Browse to a folder and zip all files in it" leads to exactly the end result I want, except that I do not want to browse to the folder. Ideally, what I would like to do is make a list in Excel of the folder names, for example:
C:\Documents and Settings\My Documents\Files001
C:\Documents and Settings\My Documents\Files002
C:\Documents and Settings\My Documents\Files003
etc.
I would then like the macro to go to each folder, and create Files001.zip, Files002.zip, Files003.zip, etc. Instinctively, I feel this should only require changing the code so that it chooses the folders based on the contents of the file, instead of by browsing, but I have no idea how to do that (or even if it is possible). My perfect end result would be a macro that would work in such a way that I only need to change the folder names in the future to zip other folders; this would speed up year end archiving, among other things.
Any thoughts, wise people? Thank you in advance!
I am looking for a way to zip all of the files in a folder automatically. I found the following from Ron de Bruin, which is almost exactly what I need:
Zip file(s) with the default Windows zip program (VBA)
The section "Browse to a folder and zip all files in it" leads to exactly the end result I want, except that I do not want to browse to the folder. Ideally, what I would like to do is make a list in Excel of the folder names, for example:
C:\Documents and Settings\My Documents\Files001
C:\Documents and Settings\My Documents\Files002
C:\Documents and Settings\My Documents\Files003
etc.
I would then like the macro to go to each folder, and create Files001.zip, Files002.zip, Files003.zip, etc. Instinctively, I feel this should only require changing the code so that it chooses the folders based on the contents of the file, instead of by browsing, but I have no idea how to do that (or even if it is possible). My perfect end result would be a macro that would work in such a way that I only need to change the folder names in the future to zip other folders; this would speed up year end archiving, among other things.
Any thoughts, wise people? Thank you in advance!