Subscribe
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
objExcel.Workbooks.Add
Set FSO = CreateObject("Scripting.FileSystemObject")
Set myFile = FSO.OpenTextFile( "filename.csv", 1 )
iRow = 0
Do while not MyFile.atendofstream
curLine = myFile.ReadLine
arrSplit = Split(curLine, ",", -1, 1)
iColumn = 0
for iColumn = 0 to Ubound(arrSplit)
objExcel.Cells(iRow, iColumn + 1).Value = arrSplit(iColumn)
iRow = iRow + 1
next
Loop
You are not logged in, either login or create an account to post comments
posted by AaRdVarK at 7:58 AM on May 14, 2007