17. VBA Tips - Save A Copy Of A File Daily

Often during your working environment, you will need to track the history of a spreadsheet.
- This tip will teach you how to seemlessly create a daily backup of your file
- The file will be date stamped so that you can sort by date and easily find a file you're looking for when you need
Here's a screen shot of our VBA code:
Explanation
- Assign a button to the SaveMeDaily sub routine
- myDateStamp is then set equal to the date in "yyyymmdd" format
- So for today, that would be: 20090512
- The advantage of this is that you can sort by name in a browser
- FilePath is then constructed as thisworkbook's path + the date stamp
- We then use SaveCopyAs to save a copy as 20090512.xls
Download sheet to practise how to Save A Copy Of A File Daily in Excel
Training Video on how to Save A Copy Of A File Daily in Excel:
| Attachment | Size |
|---|---|
| save-a-copy-of-a-file-daily.xls | 35.5 KB |
»
- Nick's blog
- Add new comment
- 2803 reads

Recent comments
12 hours 22 min ago
19 hours 40 min ago
22 hours 32 min ago
22 hours 37 min ago
1 day 13 hours ago
1 day 13 hours ago
1 day 23 hours ago
2 days 15 hours ago
3 days 15 hours ago
3 days 16 hours ago