While we type in word a new line can be created by Shift + Enter which is called a line break. Recently, I copied some text from a web site into a word and found that there is large number of unwanted line breaks in the document. Removing each of them manually would be very time consuming. So I set about how to do it. I could not find an answer even after searching for the same on the net. Then finally I got an answer from the comments section of this page. https://www.oakleys.org.uk/blog/2017/05/how_to_insert_new_line_line_break_in_microsoft_word_using_vba.
My purpose was to remove the line breaks and how I did that is given in the VBA program which I am posting in the answer your own question for those who will be in similar situations and desires to achieve it through VBA.