The first part is easy(ish). You need a bit of code in the worksheet BeforeSave event.
To get to this:
1. Open your workbook (and this will be easier if you just have the one workbook open).
2. Press Alt-F11 to open the VB editor
3. In the left-hand pane double click on the "This Workbook" object
4. In the drop-down list at the top left of the main pane select "Workbook"
5. In the right-hand drop down select "BeforeSave"
6. The following code will appear automatically in the main window:
7. Edit the code so that it reads.
You can adjust this to update whichever cell you want.
The 2nd part is slightly trickier. The count can be reset to 001 easily enough in a new month, but when do you want this to happen? Should it happen the first time you save the sheet on the 1st of the month, or the first time you open it in a new month, or based on some other trigger? Will the sheet be opened or saved more than once a day?
Bookmarks