I receive an Excel 2010 spreadsheet that I import into an Access 2010 table using a VBA Function that I wrote. I discovered that some of the dates were not being imported correctly (mm/dd/yy is the correct format). In the Excel cell the date displayed mm/dd/yy but this date imported as dd/mm/yy.
In case anyone wonders, the sheet is generated using Adobe Standard to Save as Other, Excel Spreadsheet.
After sorting through everything, I found that in my Excel sheet date cells, under cells, Number tab, WERE formatted as date but the locale (Location) property is Armenian. (The dates that imported correctly were locale: English (Caribbean)
My question is, how do I reference the Excel cell format locale property to change it to English (U. S.) using MS Access 2010 VBA?
I tried using format([excel cell reference],"mm/dd/yy") but that did not work.
In case anyone wonders, the sheet is generated using Adobe Standard to Save as Other, Excel Spreadsheet.
After sorting through everything, I found that in my Excel sheet date cells, under cells, Number tab, WERE formatted as date but the locale (Location) property is Armenian. (The dates that imported correctly were locale: English (Caribbean)
My question is, how do I reference the Excel cell format locale property to change it to English (U. S.) using MS Access 2010 VBA?
I tried using format([excel cell reference],"mm/dd/yy") but that did not work.