Hi thanks for your reply,
I´ve been looking at your code. It seems great, but must admit I find it difficult to understand, as I do not know much Clasic VB.

Would approaching this same problem with regular expressions be a realistic approach?