The trick is to make sure you save and use your workbook as an actual template, saved in Excel template format.(*.xltm). The benefit here is that each time you activate the template, it is opened without a name, thus SAVEAS is your only option, very nice. Even Ctrl-S will activate the SaveAs interface.
Then a BeforeSaveAs workbook macro does the rest for you.
1) Right-click the Excel icon to the left of the File menu and select VIEW CODE, this should open you directly into the ThisWorkbook code module.
If that doesn't work, the press Alt-F11 to open the VBEditor and open the ThisWorkbook module found in the VBAProject window
2) Paste in this code and edit the fPath variable to your server location desired:
3) Close the editor and save as a macro-enabled TEMPLATE in your templates folder (*.xltm)
4) To use the template, use File > New and select the template from your local templates, or create a handy shortcut to the template itself
5) Just press CTRL-S to save it, or use SAVEAS...either way you're workbook will be saved the way you want. If D3 isn't filled in, then you will be warned.
The "beep" will confirm audibly the file was saved.
Bookmarks