You can do that with an ordinary Find: ^l^l. No VBA required.
Cheers
Paul Edstein
[Fmr MS MVP - Word]
It does work for the examples you posted. What you haven't defined is what precedes the first line break.
Cheers
Paul Edstein
[Fmr MS MVP - Word]
You cannot have line breaks with nothing before them unless they're the very first things that exist in the document. Except for that one possibility, there must always be other characters (e.g. letters, numbers, paragraph breaks, other line breaks, etc.). You need to define what those other characters are.
Cheers
Paul Edstein
[Fmr MS MVP - Word]
well if you see on my pictures I have something before
hej hej hej(linebreak)
(linebreak)
if you know regex there is possible to use the command
start of line "linebreak"
end of line "linebreak"
you know?
Please read my previous post and take time to understand it. Posting the same pictures over and over when they don't adequately show the context in which the line breaks are occurring doesn't change anything. If you want to post something, post an actual document showing the line breaks as they occur in it (not in another picture).
Cheers
Paul Edstein
[Fmr MS MVP - Word]
sorry,
well I could grab the linebreaks by using ^l^l^$
^$ (end of line)
but still struggling with start of line.
and I understood your answer.
how should you solve this then?
The solution depends on what precedes the linebreaks, not what follows them. You seem determined not to say what precedes them or to post a document showing it. Unless you do that, you are just wasting time.
Cheers
Paul Edstein
[Fmr MS MVP - Word]
its different text before so its impossible to know
ok.jpg
Please read posts 6, 8 and 10 AGAIN. Posting images is wasting time. I'm not going to waste more of my time on someone who won't cooperate.
Cheers
Paul Edstein
[Fmr MS MVP - Word]