Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I am after a little help with a small problem with date seperators. I am using a excel VBA to import data from a text file that uses "." as date seperators, as my regional settings are set to "/" the date functions will not work. Here is the part of the code that is causing the problem: If CDate(TempStartDate) = CDate(beginDate) And CDate(TempStartDate) <= CDate(endDate) Then ..... i have tried to do the follow change to this code but still get no joy: If CDate(Replace(TempStartDate, ".", "/")) = CDate(beginDate) And CDate(Replace(TempStartDate, ".", "/")) <= CDate(endDate) Then Can any one help me with this before I give in:( Many Thanks Ian |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Crumb
Start here http://www.oaltd.co.uk/ExcelProgRef/default.htm -- Regards Ron de Bruin http://www.rondebruin.nl "Crumb" wrote in message oups.com... Hi, I am after a little help with a small problem with date seperators. I am using a excel VBA to import data from a text file that uses "." as date seperators, as my regional settings are set to "/" the date functions will not work. Here is the part of the code that is causing the problem: If CDate(TempStartDate) = CDate(beginDate) And CDate(TempStartDate) <= CDate(endDate) Then ..... i have tried to do the follow change to this code but still get no joy: If CDate(Replace(TempStartDate, ".", "/")) = CDate(beginDate) And CDate(Replace(TempStartDate, ".", "/")) <= CDate(endDate) Then Can any one help me with this before I give in:( Many Thanks Ian |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Date conversion on text file import | Excel Discussion (Misc queries) | |||
Date Seperator | Excel Discussion (Misc queries) | |||
Excel Addin altering date format on text file import | Excel Programming | |||
import .CSV file to XP EXcel 2003 worksheet, the seperator is com. | New Users to Excel | |||
Problem with COM Addin in German OS and German Office. | Excel Programming |