Hi Salbrox,
the code you 'found online' cannot work. If you would replace the line
If Left(9, ThisLine) = "<STATUS>" And Right(1, ThisLine) <> ">" Then
by
If Left(ThisLine, 9) = Chr(9) & "<STATUS>" And Right(ThisLine, 1) <> ">" Then
then it would work, that is: without error, but it would...