Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Can I add my experience in the hope that Microsoft may be tempted to fix their error generation feature. My workaround may also be of some use to others. I use English Regional settings and imported a file to a spreadsheet using DMY date settings. With VBA I set a string variable s to the contents of a cell which contained 10/06/2005. When (without further processing) s was stored in a new location, that cell showed 6/10/2005 - i.e. it had been converted to US format. I attempted to force the correct format by interposing s = FormatDateTime(s,2) but this had no effect. However, changing this to s= FormatDateTime(s,1) gave Friday, 10 June 2005, which is cumbersome - but at least it is correct. boofhead *** Sent via Developersdex http://www.developersdex.com *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLOOKUP Errors with Date formats | Excel Worksheet Functions | |||
Excel Throwing Circular Errors When No Errors Exist | Excel Worksheet Functions | |||
date formula errors | Excel Worksheet Functions | |||
Chart - date with errors #DIV/0! | Charts and Charting in Excel | |||
Unresolved Errors in IF Statements - Errors do not show in results | Excel Worksheet Functions |