Hi zqtqzq,
in my excel file I had a few errors caused by people inputting commas or linefeeds into the data.
Perhaps your problem is caused by a multi-line string?
I solved mine by searching the string with 'instr' and replacing any 'hits' with a space...
-----------------
'xfer1 is the data read in from the .xls
Do
Point1 = InStr(xfer1, ",") 'strip out any commas
If Point1 > 0 Then
Mid(xfer1, Point1, 1) = " "
Else
Exit Do
End If
Loop
Do
Point1 = InStr(xfer1, Chr$(10)) 'strip out any LF's
If Point1 > 0 Then
Mid(xfer1, Point1, 1) = " "
Else
Exit Do
End If
Loop
-----------------------
Regards
Peter