I found my error
In fact I need to put the code after the line :
Code:
oDoc.Range.Text = ""
And that works !!!
Any ideas how to put this condition that chapter 1 and/or 2 need to be checked to validate the document ? Without this condition, the macro send a message.
Thanks, I learn quickly with you.