I am attempting to import this attached file using the following code:
Sub ImportTest() 'Open the file to import Dim intFileNum As Integer intFileNum = FreeFile Open "C:ebill_R_Audit_11_20021210.txt" For Input As #intFileNum Dim strFromFile As String While Not EOF(intFileNum) Line Input #intFileNum, strFromFile Debug.Print "zzz" Debug.Print strFromFile MsgBox strFromFile Wend Close #intFileNum End Sub
Why do I get only 1 msgbox with the full contents of the file and not 3 with 1 line each?