Hi All
Is it possible to read text/excel file line by line thro VBA
Cheers
Shabar
Hi All
Is it possible to read text/excel file line by line thro VBA
Cheers
Shabar
Sort of. This is a common topic. Search forum or Google. Code is different for text and Excel files.
How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.
Thax June7
I found following. It works for me
Dim FileName As String
Dim FileNum As Integer
Dim strTable, strColumn As String
FileName = "C:\Temp\TableName.txt"
FileNum = FreeFile()
Open FileName For Input As #FileNum
Do Until EOF(FileNum)
Input #FileNum, strTable, strColumn
Loop
Close #FileNum
Cheers
Shabar