This is just nuts.
I have a cell (in excel) in which I type "23:50" (without quotes). Next, with this cell selected, I go to the immediate window and type
msgbox activecell = timevalue("23:50")
..and it gives me "FALSE"!
I get TRUE for everything else, for eg with 23:49 or 23:51 (or any other time for that matter) in the cell and correspondingly in the code, but with 23:50 its breaking down for no reason.
This line is part of a bigger code, where this condition needs to be TRUE for the rest of it to execute. Using Excel 2007 on Win 7.