Cat On A Spreadsheet
If you’ve ever spent hours every month tidying folders, copying files, running reports, and compressing them for delivery, you’ll love this post. In this case study, we’ll build a complete VBA-driven file automation workflow that:
Cleans up last month’s processed files
Gathers new source files into a workspace
Runs an automated process on them (you can plug in your own logic here)
Archives everything neatly with timestamped ZIPs
Sends a summary report
All in a single click.
Let’s assume this folder layout:
Each month, new data files land in Source. We’ll process them into Working, output results to Processed, and zip them to Archive.
Before new processing starts, the script clears the Working and Processed folders so old files don’t interfere.
This keeps your workspace tidy and prevents duplicate runs.
Now, we copy the latest input files into the working area:
You can modify this to filter only certain extensions — e.g., only .csv or .xlsx.
This step depends on your workflow. As an example, we’ll read all .xlsx files in Working and copy the “Summary” sheet to a consolidated workbook.
This is your “core logic” section — it can be replaced with any kind of file processing.
Once the reports are generated, it’s time to zip and store them.
Finally, use Outlook automation to deliver the finished package:
You can now tie everything together into a single workflow:
This is a real-world automation pipeline that can be extended infinitely:
Add error handling and logging for robustness
Insert database exports, data cleansing, or Power Query refreshes in the process step
Schedule the pipeline using Windows Task Scheduler
With these building blocks, Excel VBA becomes a lightweight orchestration tool that automates entire reporting cycles — fully hands-free.
Cat On A Spreadsheet