LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #15   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default DateValue gets wrong date number

One possible solution is to change your import, so that column is imported
as strings rather than being allowed to be interpreted as dates when the
file is opened.

Bernie


"StuartBisset" wrote in message
...

Try changing:


myVals = Split(wkbCSV.Cells(xLoop, 1), "/")


to


myVals = Split(wkbCSV.Cells(xLoop, 1).Text, "/")


Bernie

Thanks but no joy.


Bernie, I should have said the

wkbCSV.Cells(xLoop, 1).Text

returns

"########"

as a value so Split() can't split it.




 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DATEVALUE, etc. and Australian date format LProegler Excel Worksheet Functions 1 March 26th 08 01:56 AM
conditional formatting on date where today is or = datevalue Ken Excel Discussion (Misc queries) 3 August 31st 07 07:27 AM
Date Conversion- DATEVALUE- including minutes The Mecca Excel Worksheet Functions 3 August 11th 06 05:22 PM
Date-related problems - max and datevalue Dimitri Ulyinov Excel Discussion (Misc queries) 3 May 28th 06 05:34 PM
DATEVALUE OF CURRENT DATE JONBOYMFLY Excel Worksheet Functions 5 December 29th 04 05:55 PM


All times are GMT +1. The time now is 02:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"