I am having trouble understanding why the Excel function IsDate is returning false when I am trying to read a cell which has Date formatting applied to it.
Basically the program is sequentially going through a column of status' - when there is an open entry, it then looks at the corresponding cell to determine whether the action date is earlier than the current system date (and therefore whether or not it needs to be actioned).
Despite the fact that I have applied Date formatting to the entire column, when I run the IsDate() function against a cell containing one of these dates I get a result of FALSE.
Can anyone suggest why this should be happening?
is there a way of forcing the contents of a cell to be treated as though it was a date - so it can be assigned to a Date type variable for comparison?
Any help would be much appreciated, as this is starting to annoy me!
Thanks
Andy
Basically the program is sequentially going through a column of status' - when there is an open entry, it then looks at the corresponding cell to determine whether the action date is earlier than the current system date (and therefore whether or not it needs to be actioned).
Despite the fact that I have applied Date formatting to the entire column, when I run the IsDate() function against a cell containing one of these dates I get a result of FALSE.
Can anyone suggest why this should be happening?
is there a way of forcing the contents of a cell to be treated as though it was a date - so it can be assigned to a Date type variable for comparison?
Any help would be much appreciated, as this is starting to annoy me!
Thanks
Andy