Taking a better glance to your code, you must first check the value of the variable LineIndex just after the Close codeline
in order to be sure at least the entire text file is well read … If positive, you are certainly right for where the glitch may occur.
Transpose must be avoided - as maybe still limited to 65K rows - just declaring the array variable as 2 dimensions like Dim strLine(1 to Rows.Count, 0)
and to allocate a line use Line Input #1, strLine(LineIndex, 0) so ReDim Preserve is no more needed …
For further help if necessary, an attachment - follow the top page yellow banner - of the source text file will help to investigate your issue
with an explanation of the expected worksheet layout.
Bookmarks