Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default "Date" format after CSV import...

Gethi all
many thanks in anticipation.
i am "importing" data from a CSV file by opening the CSV file in vba using
GetOpenFilename. Once open, I am copy/pasting data from sheet(1) into
previously active workbook into sheet(1), then closing the CSV file.
The data imports OK, with the data in columns etc. What I have noticed is
that the dates can be considered as "text" (ie left-aligned in cell) or
"dates" (right-aligned). While IsDate() recognised both as dates, any date
function / analysis does not correctly interpret the date in the former.
If i select cell formatting and choose "date" etc, it doesn't make any
difference to the cell. The only data option i have found to change the
format is to use "text-to-columns" on that column... which itself can
introduce some errors...
i really need a way to debug the dates to ensure they are valid, and will be
processed correctly.
many thanks

Mike
Reply
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
retain custom date format "text" when pasting or reformatting data frustrated worker Excel Discussion (Misc queries) 2 October 28th 09 06:03 PM
Using VBA to change a cell format to date doesn't get "committed" nick Excel Discussion (Misc queries) 3 March 31st 09 08:26 AM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
Import HTML data into Excel - data in "1-1" format translates to J PaulT Excel Discussion (Misc queries) 2 December 6th 06 06:28 AM
Scroll Bar missing "Control" tab in "Format Properties" dialog box Peter Rooney Excel Discussion (Misc queries) 5 August 24th 06 05:36 PM


All times are GMT +1. The time now is 08:45 PM.

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

About Us

"It's about Microsoft Excel"