Hi everbody!
I am using Excel and I wrote a code using VBA. I have subroutine which open and read text file. I call this subroutine in the master program. The object of the program is to open read a text file(numeric) and make average of the data , make a table and fill the table with the data. However, I want to modify the program so that it can open 5 text file at the same time and process the data. Below I have a code that open and read one file. Could you please give me an advice how to open and read multiply files at the same time Thanks in advance
Filename = Application.GetOpenFilename()
Close
FileNumber = 1
Open Filename For Input As #FileNumber
' Get data, here I call the subrutine that read the data
Close
If DataCount = 0 Then
MsgBox "No data"
Exit Sub
End If