Hi all ..
I can't figure out how to update a date variable.
Column A is a date column
A1 has a date in it
A2 to A4 are empty
A5 has another date in it.
In my code, the date variable, ThisDate, is assigned the value of A1
The code eventually loops down to the next A cell.
If this is empty, I don't want to change ThisDate. However, if the cell contains a date, I want to change the value of ThisDate to the new date.
But I keep getting 12:00:00 AM as the date in the empty cells ?????
Graham
I can't figure out how to update a date variable.
Column A is a date column
A1 has a date in it
A2 to A4 are empty
A5 has another date in it.
In my code, the date variable, ThisDate, is assigned the value of A1
The code eventually loops down to the next A cell.
If this is empty, I don't want to change ThisDate. However, if the cell contains a date, I want to change the value of ThisDate to the new date.
But I keep getting 12:00:00 AM as the date in the empty cells ?????
Graham