thunderkid
Technical User
I would like to open multiple text files into a single Excel file (each file would be extracted onto a sheet). I would like to read the text files, up to 20 files, from a text file. I know that I can use the following subroutine for single text file into one worksheet:
Sub OpenTextFile()
Workbooks.OpenText Filename: "C:\directory\file_1, _
DataType:=xlDelimited, tab:=True, comma:=True
End Sub
I can use the above as many times as I need to by replacing the filename (file_1). Any ideas?
Thanks
thunderkid
Sub OpenTextFile()
Workbooks.OpenText Filename: "C:\directory\file_1, _
DataType:=xlDelimited, tab:=True, comma:=True
End Sub
I can use the above as many times as I need to by replacing the filename (file_1). Any ideas?
Thanks
thunderkid