Hello guys

Sorry again.

The fact is every line is NOT a paragraph - they're simply lines separated by manual line breaks within the same paragraph.
to me, a manual line break is Shift+Enter, which can be seen in Word as an arrow that goes down and then left. And a paragraph break is what happens when you just press Enter... and in my document there's no Shift+Enter line breaks, only "paragraph breaks"...

Gerry is quite justifiably annoyed too that, having asked you to supply a document containing the actual content, all you did was to post more of the same stuff that doesn't allow us to see what you're really working with.
Actually I thought sending a sample text in a word document and posting the same text directly in my message wouldn't make any difference. That's why I didn't understood why you asked for a word document attached to my post...

The most likely reason that Gerry's macro gave the '5941' error is that, in addition to the misleading advice you did give, you also didn't tell us your document also contains empty paragraphs - or, at least, paragraphs with less than two 'words'.
in my first sample text there were 2 paragraphs with a few empty lines (paragraph jumps) between them... (if it's what you call empty paragraphs)

So, yes, you did waste Gerry's time - and some of mine.
So sorry again. Well you didn't really waste your time since you found a solution to my problem... thanks again for that.

Actually I did NOT ask you that. I asked:


Can you post a sample document, removing any sensitive information?


Document. I do not think I could be more clear. Document.
I thought my few sample paragraphs could be called "a document"... since in a Word document there would be exactly the same thing. To me if you copy-and-paste a text from a word document into a post on a forum, it is still a document. Language problem, as I said. Sorry for that, but it's not my fault... Dealing with a subject I know nothing about in a language that isn't mine, is far from being easy for me. If you had to ask questions about a subject you don't know in a French forum (if you don't really master French), I guess you might not understand everything properly either...


I could have answered the 5941 error immediately. Please, in the future try to answer questions asked of you. I also asked
Are you saying my macro in MY file did not work on your machine?
It worked in your word document and I couldn't understand why the very same text would be transformed in your document and not when I used the very same text in my document. That is beyond me, I still don't understand where is the difference. So I thought your macro wouldn't work in my other files, that's why I didn't answer...

Sorry again and thanks...