Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
The 4 is the data type that imports dates in the DMY format. For instance... Workbooks.OpenText Filename:="GRAHAM", Origin:=xlWindows _ , StartRow:=1, DataType:=xlFixedWidth, FieldInfo:=Array(Array(0, 4), Array( _ 23, 9), Array(26, 1) The arrays above are in the form Array(n, m). The n = start position, the m = data type. The full list for the data types (m) is... 1 General Data 2 Text 3 MDY 4 DMY 5 YMD 6 MYD 7 DYM 8 YDM 9 Skipped Therefore, from the first array above: Array(0, 4) Start position 0 & import as DMY Array(23, 9) Start position 23 & skip Array(26, 1) Start position 26 & import as general data Rob Edwards Always look on the bright side of life! *** Sent via Developersdex http://www.developersdex.com *** |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
date format problem from opening dbf file in excel 2007 | Excel Discussion (Misc queries) | |||
How do I change the date format when importing a txt file? | Excel Worksheet Functions | |||
Opening a csv file with US date format on a Australian PC | Excel Discussion (Misc queries) | |||
switched date format opening dbf file | Excel Programming | |||
Date format when opening a .CSV file programmatically | Excel Programming |