I had to open a ".all" type file using VBA. The problem is that this types of files have between 7.000.000 and 20.000.000 rows.
Im using this code:
Sub open()
book1 = ActiveWorkbook.Name
file1 = Application.GetOpenFilename("ALL Files (*.all), *.all")
Worksheets("res").Range("K1").Value = file1
Workbooks.OpenText file1, origin:=xlWindows, startrow:=1, DataType:=xlTextFormat
del = ActiveWorkbook.Name
ActiveSheet.Copy before:=Workbooks(book1).Sheets(1)
Workbooks(del).Close False
Sheets(1).Activate
ActiveSheet.Name = "acti"
End Sub
With this routine I get a máximum number of 1.048.576 rows.
Any way to dynamically extend the upper limit of rows?
Thank you.