Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Import data from multiple files
Hi,
I currently have a data query that imports data from multiple "TEXT" files in a folder one file at a time when I select them. I have to individually select the file, the query is run and imports the data. Is it possible to have Excel open a folder, select all the files (individually or all together) and import the data. the files are CSV. I can then manipulate the data once it's in but the time consuming bit is getting it in. I would use MS Access but don't have it....YET! Thanks in advance..... |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Import data from multiple files
Daear Dean
The below code should do....... Dim strFolder, strFile strFolder = "C:\" strFile = Dir(strFolder & "*.csv", vbNormal) Do While strFile < "" 'Write your import code here strFile = Dir Loop If this post helps click Yes --------------- Jacob Skaria |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Import data from multiple files
Jacob,
Looks brill. Thanks Dean "Jacob Skaria" wrote: Daear Dean The below code should do....... Dim strFolder, strFile strFolder = "C:\" strFile = Dir(strFolder & "*.csv", vbNormal) Do While strFile < "" 'Write your import code here strFile = Dir Loop If this post helps click Yes --------------- Jacob Skaria |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Import data from multiple files
Hi Dean
See also http://www.rondebruin.nl/csv.htm Or http://www.rondebruin.nl/txtcsv.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Dean" wrote in message ... Hi, I currently have a data query that imports data from multiple "TEXT" files in a folder one file at a time when I select them. I have to individually select the file, the query is run and imports the data. Is it possible to have Excel open a folder, select all the files (individually or all together) and import the data. the files are CSV. I can then manipulate the data once it's in but the time consuming bit is getting it in. I would use MS Access but don't have it....YET! Thanks in advance..... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Import data from multiple excel files in one folder | Excel Programming | |||
Import data from multiple txt files into one xls file | Excel Programming | |||
Import data from multiple excel files | Excel Programming | |||
Excel VBA - Import Data for manipulation from multiple text files | Excel Programming | |||
Import multiple files macro can't find files | Excel Programming |