Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
how do you export dates into a query
|
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Excel dates are stored as numbers from a reference point,
either you need to adjust the number by subtracting (or adding) a constant; otherwise, if it is looking for a text date with slashes or hyphens then you would have to format another cell as text =TEXT(cellwithdate, "yyyy-mm-dd") in VBA code it would be something like strDate = FORMAT(datevariable,"yyyy-mm-dd") strDate = Format(Date, "yyyy-mm-dd") --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "tires85" wrote ... how do you export dates into a query |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Thanks very much,
I will try this. "David McRitchie" wrote: Excel dates are stored as numbers from a reference point, either you need to adjust the number by subtracting (or adding) a constant; otherwise, if it is looking for a text date with slashes or hyphens then you would have to format another cell as text =TEXT(cellwithdate, "yyyy-mm-dd") in VBA code it would be something like strDate = FORMAT(datevariable,"yyyy-mm-dd") strDate = Format(Date, "yyyy-mm-dd") --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dmcritchie/excel/search.htm "tires85" wrote ... how do you export dates into a query |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro question | Excel Worksheet Functions | |||
Inputting data to one worksheet for it effect another | Excel Discussion (Misc queries) | |||
From several workbooks onto one excel worksheet | Excel Discussion (Misc queries) | |||
Sort pages? | Excel Discussion (Misc queries) | |||
Pulling data from 1 sheet to another | Excel Worksheet Functions |