Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

EXCEL Date conversion bug - help needed

Status
Not open for further replies.

canberrasnag

Programmer
Nov 25, 2004
19
RU
I have found, that sometimes I load an HTML file into excel to extract data, sometimes if formats numeric fields as dates, but not always. Eg: 1.19 is changed to mar.00. When I click on this cell I see 01.01.1900 . It appears to be a date formatted field. this could be a C++ bug.
I tried to fix this with VBscript, with moderate success.
I managed to exctract the 1.19 and use it as such, But I have now noticed, that when I extract this "date" field for manipulation, the vbscript or the application ( I don't know which) subtracts one day from the date. so 01.01.1900 becomes 21.12.1890 which totally stuffs up my numbers.
I am using .vbs files.
Help would be greatly appreciated.
Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top