Thank you for your help. The code that you provided splits the document by sections, but I need to split it by a delimiter. I tried to combine the two codes but I just don't get it work
Do you know how I would have to edit my original code (see above) to save the documents with the first textline as FileNames, OR how I would have to edit your code the split the documents by a delimiter?