tak så kom det hele til at virkke
smider lige koden så den ligger sammen med tråden til andre folk
Const ForReading = 1
Const ForWriting = 2
arrCommas = Array(12,7,17,18,20)
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.OpenTextFile("C:\1\Test.txt", ForReading)
Do Until objFile.AtEndOfStream
strLine = objFile.ReadLine
intLength = Len(strLine)
For Each strComma in arrCommas
strLine = Left(strLine, strComma - 1) + "," + Mid(strLine, strComma, intLength)
Next
strText = strText & strLine & vbCrLf
Loop
objFile.Close
Set objFile = objFSO.OpenTextFile("C:\1\Test.txt", ForWriting)
objFile.Write strText
objFile.Close
tak