S
sakura
Hello,
I have a question regarding an auto-incrementing number based
upon the current date.
What I would like to do is create a number based on the year
and month. For example: if year is 2004, and month is March,
I'd like the number to read: 0403; if year is 2005, and month is
November, I'd like the number to read 0511. Once that is
accomplished, I would like to have another 3 digit number
which is the one that actually is incremented. So, the final
number would be something like: 0403001, 0403002, etc...
I would prefer that there be some kind of verification routine
when the file is opened which checks the value of the cell
containing the number. If the file is being opened or saved
for the first time, then the number should be placed into the
proper cell. However, ff the file is opened at some point in the
future for viewing or modification, the number should remain as
is and never be incremented.
In addition, I would like for the extra 3 digit number to cycle
back to "001" at the first of each month.
Also, the files will be not necessarily be used on the same PC so,
I would prefer that this would not be tied to the registry settings.
Thanks very much!
Sakur
I have a question regarding an auto-incrementing number based
upon the current date.
What I would like to do is create a number based on the year
and month. For example: if year is 2004, and month is March,
I'd like the number to read: 0403; if year is 2005, and month is
November, I'd like the number to read 0511. Once that is
accomplished, I would like to have another 3 digit number
which is the one that actually is incremented. So, the final
number would be something like: 0403001, 0403002, etc...
I would prefer that there be some kind of verification routine
when the file is opened which checks the value of the cell
containing the number. If the file is being opened or saved
for the first time, then the number should be placed into the
proper cell. However, ff the file is opened at some point in the
future for viewing or modification, the number should remain as
is and never be incremented.
In addition, I would like for the extra 3 digit number to cycle
back to "001" at the first of each month.
Also, the files will be not necessarily be used on the same PC so,
I would prefer that this would not be tied to the registry settings.
Thanks very much!
Sakur
