I have a workbook d:\private\test.xlsm with lots of tabs and data.
Each year this workbook is copied to an archive directory (d:\private\archive\"year") and cleared completely for the new year.
I made a separate workbook with a protected vba for clearing the complete workbook (the famous red button). But I want to automate the copying too.
In the red button workbook the desired year has to be entered in cell G10. The first thing the red button has to do is create a directory in the archive directory with the name of the G10 value.
After that it has to copy the test xlsm to that new directory. After that my clearing script will do the rest with the original test.xlsm.
The first part, before the clearing is my big problem.
Does anyone have a good solution ?
Each year this workbook is copied to an archive directory (d:\private\archive\"year") and cleared completely for the new year.
I made a separate workbook with a protected vba for clearing the complete workbook (the famous red button). But I want to automate the copying too.
In the red button workbook the desired year has to be entered in cell G10. The first thing the red button has to do is create a directory in the archive directory with the name of the G10 value.
After that it has to copy the test xlsm to that new directory. After that my clearing script will do the rest with the original test.xlsm.
The first part, before the clearing is my big problem.
Does anyone have a good solution ?