The only way I have been able to understand is to spend MY time trying to figure out what you are doing. It would greatly help YOU if, in further posts, you perform some best practices, Please look at the FAQ for posting in this forum. There has been too much traffic due to you not being clear.
OK, fine, that is over. LAXMIMA, have you actually done very much programming? I do not think you are getting this very well. You are not being clear, you are not grasping a concept that is crucial.
You are STILL asking for a second stage routine to fix your first stage routine. In other words, you are still asking for a RETURN of a line break, that
you made, to its original state. To
fix the results of your
previous code.
This is bad programming. You need to ask yourself - what has to be done in the first place. What are the requirements? What needs to be done in logical steps so it runs the way that fulfills the requirements? Nothing more, but nothing less. Running code that fixes some stuff, but makes other stuff WRONG...is bad code.
Think about what is the logic to make it correct
in the first place. Try some code, work it, and when you have some actual code to post, post it and we can see how we can help you get it to work properly.
Write out, on paper, what it is you require.
Write out, on paper, the steps (as far as you know) that need to be done for the requirements to be met.
Try recording macros that do the parts. I am very willing to help. I like to help. However, I am not going to post a solution for you. You are going to have to think it through.
Going to give a direction to think about. remember my example?
text text text text text text text (line)
text text text text (line)
text text text text text text text text text (line)
text text text text text text text text text (line)
text text text text text text (line)
You agreed that the last three lines were ONE paragraph, so the two line breaks should really go completely.
OK< let adjust this a little.
text text text text text text text (line)
text text text text (line)
text text text text text text text text text (line)
text text text text text text text text text (line)
text text text text (line)
You agreed line 2 is one paragraph. 3 to 5 is ONE paragraph.
But wait...notice that line 5 is now the SAME length as paragraph/line 2. Tell me. how are you, using character length, going to be able to say THAT one is a paragraph, THAT one is not and belongs to the previous text lines? Both have the same character count.
Your turn...
Gerry
See my
Paintings and Sculpture