Something very strange is happening here!
Forget what I said earlier about the year reverting to "00" if the
column was pre-formatted to yymmmdd.
What is happening is that the code seems to run for only the first 3
cells ie A1, A2, A3. When we get to A4, the month/year are reset to
Jan/00. The Jan/00 will then continue to be returned from there on
down.
However, if I then select a cell at least 4-5 cells farther down the
column, let's say A10, A11, A12 will all return correct dates - but
A13 will again revert to Jan/00. Very strange!
Now delete that column A. Select new cell A30, enter a digit and then
use up-arrow to go to the cell above. Keep entering a digit and
moving to the cell above using the up-arrow. It all works perfectly
with no resetting to Jan/00.
As I said, something very strange is happening here! Your insight is
much appreciated.
Regards
Dick
On Tue, 24 Feb 2004 17:30:14 +1000,
wrote:
OK, I'll try a few experiments to see if I can find the problem - I'll
let you know.
Thanks again.
Dick
On Mon, 23 Feb 2004 23:20:50 -0500, "Tom Ogilvy"
wrote:
It shouldn't be a problem. I can't say why it doesn't work in your existing
workbook.