I'd like NW to find every textblock, copy it, open a new file, paste the copied text into that new file, name the new file (filename is first line of text), save it and close it.
So that in the end I have got thousands of documents.

Note how I am taking the file name from your find expression. Is that the correct bit that you want? If those bits are not unique, this macro will overwrite earlier files with the same name.

I added a line for the Sandbox access. I hope this works, and that it only asks for access at most once. You may want to test on a small sample first.

At the beginning I added a place where you can choose the extension for the saved files, and for the encoding

This is only saving the content. The formatting will be dumped. If you want to save the formatting, this would have to be changed slightly. I picked this method, since I think it will be fastest. Let me know if it is not what you want.

Matze wrote:When I want to name the bits after the first number I just have to replace the name-part, right?

To get bits out of a find expression into a variable, you can use the '$' option. So you should see that I added a '$' to the options on the second find expression. Note that this only works for "Find" not for "Find All".

So then to grab a bit and put it into a variable you use a parenthesis like this:

The variable name can be any single word you want. The variable will have the same name with a '$' at the front.

Then you make sure that only the part you want in the variable is inside the parentheses. By the way your original find expression was fine, but it has a lot of parentheses, and most of those are not needed in the macro. So here is the expression with all the unnecessary parentheses removed:

sorry for the late reply and thanks again for your help and your explanations.
I have saved them in my database for further use.
What would I be without your generous macros over all these years?
If you ever need some help in german (translations, lecture or alike), please let me know. It will be a pleasure for me to pay back that way.