How do I create a unique serial number using the current date everytime a template is opened? Then when the template is edited, I need this number to remain fixed and not change if that file is opened at a later date.
If I understand you correctly, the following macro should work. It will auto-execute when the file is opened (as long as the auto-execute option has not been deselected):
No. Code "Just using @ functions" would change every time the cell was re-calced, intentionally or otherwise. This truly clever macro exec's just once... at the instant when the template is opened. Then it's code ceases to exist as a macro in any derivative worksheet, which is auto pre-named (protecting the template from inadvertent overwriting).
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.