Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a big problem in my master thesis. I want to read many text file into excel file for data analyses. Th text files are so numerous that I can not read the files one by one. S I plan to read it into excel by VBA code. But I just learn to how t read one file into excel, and do not know how to deal with numerous. can modify to name the files with number. My code: Sub opentext() Dim i As Integer For i = 1 To 10000 Workbooks.opentext Filename:="D\:VB\10000+i.out", _ /The text file ca be name as 10001, 10002,.... Origin:=xlMSDOS, _ StartRow:=1, _ DataType:=xlDelimited, _ ConsecutiveDelimiter:=True, _ Space:=True Next i End Sub Obviously, the code can not work. Could somebody give me a help. Thank in advance -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro to Read Multiple CSV files into Excel | Excel Worksheet Functions | |||
Importing multiple Text files into Excel 2003 | Excel Discussion (Misc queries) | |||
Import multiple text files into excel | Excel Programming | |||
Read/Write data to/from text files from a spreadsheet. | Excel Programming | |||
findinf text in multiple excel files | Excel Programming |