Hi,Can anyone suggest what's going on here with the attached file.Opening it manually the dates in column C are all consistently date numbers. i.e. using the =ISNUMBER() function to test them, they all return True
However when I include the VBA instruction:to open the same file, the dates are a mixture of date numbers and what appear to be text since some return the value FALSEPlease Login or Register to view this content.
However I think they are still date numbers since when I use say=Left(c10,2) to extract the '01' which is actually month 1 January, I get the result 40, which is in fact the 40 from the number 40026, which of course implies it is a date, albeit it the wrong one, i.e. 1st Aug 2009 not 8th Jan 2009.
This file originates from Quick Books if that helps and I'm using Excel 2007.My problem is that since the 'dates' are inconsistent I can't rely on being able to filter them.So.. two questions.
1. Why does the file open manually with all dates consistently proper dates, yet when opened with a macro they are different.
2. Can anyone suggest why these dates are inconsistent and how they could be manipulated to consitent date numbers.
I'm fast disappearing up my own backside with this!
Usual TIA
Bookmarks