the error messages mean nothing without the values.

1st error:
well I said
VB Code:
  1. If m_strParts[B](0)[/B] = "Caption" Then
but it would have errored anyway. Can't say anything without values - presumably it's because of the multiline thing again but I don't know. The replacing of vbCr with vbNullstring should have solved that problem. According to my test

Test code:
VB Code:
  1. Private Sub Form_Load()
  2.     Dim s As String
  3.      
  4.     s = "This is" & vbCrLf & "a test"
  5.    
  6.     Open "C:\CRTest.txt" For Output As #1
  7.         Print #1, Replace(s, vbCr, vbNullString)
  8.         Print #1, "Next Line";
  9.     Close #1
  10.    
  11.     s = vbNullString
  12.    
  13.     Open "C:\CRTest.txt" For Input As #1
  14.         Do Until EOF(1)
  15.             Line Input #1, s
  16.             Debug.Print Replace(s, vbLf, vbCrLf)
  17.         Loop
  18.     Close #1
  19. End Sub
2nd error
Need values