Thank you very much for your answer. I tested and it seems to work like a charm. But I have still two small questions :
First, I have big difficulties understanding your code. In particular, why do you make the unlink, previous and collapse stuff ?
Second, imagine that now, I want to programmatically find the paragraph whose number is 1.2.3.4. By adapting your code, I can iterate through all paragraphs of document, extract the paragraph number with your code, and check if it matches. But is there a more efficient way to do this ?
Thanks in advance.
Regards,
Brice
|