Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Import txt file
I have a macro to import data from a text file (csv with
extension txt), with dates as dd/mm/yyyy in the first column and values in the others. When I run it, all the data is imported properly except that sum of the dates get the date format in the cell and sum stay as standard. If I use German regional settings (which I usually do), the dates with date cell format also turn to mm/dd/yyyy. Does anyone have a clue what the problem might be and how to overcome? Thanks Hasan |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Import txt file
Hasan Cansü wrote:
I have a macro to import data from a text file (csv with extension txt), with dates as dd/mm/yyyy in the first column and values in the others. When I run it, all the data is imported properly except that sum of the dates get the date format in the cell and sum stay as standard. If I use German regional settings (which I usually do), the dates with date cell format also turn to mm/dd/yyyy. I suggest you record a macro while doing File / Open on this file. The import wizard should appear. Specify Delimited / Next / Comma / Next Select the first column and specify Date: DMY / Finish Then copy the relevant part of the recorded macro into your macro. Bill Manville MVP - Microsoft Excel, Oxford, England No email replies please - reply in newsgroup |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Can I import text file of cash flow to excel file then use formula | Excel Discussion (Misc queries) | |||
import file so that it is a actual csv file, no excel cell version | New Users to Excel | |||
import data from txt file to an existing excel file | Excel Discussion (Misc queries) | |||
Would Like to Automate Batch File Creation and Text FIle Import | Excel Discussion (Misc queries) | |||
Get External Data, Import Text File, File name problem | Excel Programming |