Note: The other languages of the website are Google-translated. Back to English

How to merge or combine multiple lines into a single paragraph in Word document?

If there are hundreds and thousands of paragraphs in your Word document, when printing this document, it will need a lot of paper. For saving papers, you can merge these multiple lines into one single paragraph. However, how could you combine all these lines into one paragraph quickly and easily in Word document?

Merge or combine multiple lines into one single paragraph with Find and Replace function

Merge or combine multiple lines into one single paragraph with VBA code


Merge or combine multiple lines into one single paragraph with Find and Replace function

The Find and Replace function in Word can help you to merge multiple lines into one paragraph, please do as this:

1. Select the paragraphs that you want to merge into one paragraph.

2. And then, click Home > Find > Advanced Find to go the Find and Replace dialog box, in the Find and Replace dialog box, under the Find tab, please enter ^p into the Find what text box, and then select Current Selection option from the Find In drop down list, see screenshot:

doc merge multiple lines 1

3. Then go to the Replace tab, and leave the Replace with text box empty, and then click Replace All button, see screenshot:

doc merge multiple lines 2

4. And all the selected paragraphs have been merged into one single paragraph, see screenshot:

doc merge multiple lines 3


Merge or combine multiple lines into one single paragraph with VBA code

Here is another useful method also can help you to finish this job in Word, please do with following steps:

1. Select the lines that you want to merge into one paragraph.

2. Then, hold down the ALT + F11 keys to open the Microsoft Visual Basic for Applications window.

3. And then, click Insert > Module, copy and paste below code into the opened blank module.

VBA code: Merge multiple lines into one single paragraph:

Sub CleanUpPastedText()
    Dim xSelection As Selection
    On Error Resume Next
    Application.ScreenUpdating = False
Set xSelection = Application.Selection
    If xSelection.Type <> wdSelectionIP Then
        FindAndReplace xSelection
    Else
      If MsgBox("Do you want to merge all selected lines into one paragraph?", vbYesNo + vbInformation, "Kutools for Word") = vbNo Then Exit Sub
      xSelection.WholeStory
      Set xSelection = Application.Selection
      xSelection.HomeKey wdStory
      FindAndReplace xSelection
    End If
    Application.ScreenUpdating = True
    Application.ScreenRefresh
    MsgBox "The selected lines have been merged into one paragraph.", vbInformation, "Kutools for Word"
End Sub
Sub FindAndReplace(Sel As Selection)
    With Sel.Find
        .ClearFormatting
        .Replacement.ClearFormatting
        .Forward = True
        .Wrap = wdFindStop
        .Format = False
        .MatchAllWordForms = False
        .MatchSoundsLike = False
        .MatchWildcards = True
        .Text = "[^s^t]{1,}^13"
        .Replacement.Text = "^p"
        .Execute Replace:=wdReplaceAll
        .Text = "([!^13])([^13])([!^13])"
        .Replacement.Text = "\1\3"
        .Execute Replace:=wdReplaceAll
        .Text = "[ ]{2,}"
        .Replacement.Text = " "
        .Execute Replace:=wdReplaceAll
        .Text = "([a-z])-[ ]{1,}([a-z])"
        .Replacement.Text = "\1\2"
        .Execute Replace:=wdReplaceAll
        .Text = "[^13]{1,}"
        .Replacement.Text = "^p"
        .Execute Replace:=wdReplaceAll
    End With
End Sub

4. And then press F5 key to run this code, and all selected paragraphs have been combined into one paragraph as following screenshot shown:

doc merge multiple lines 4


Recommended Word Productivity Tools

 

Kutools For Word - More Than 100 Advanced Features For Word, Save Your 50% Time

  • Complicated and repeated operations can be done one-time processing in seconds.
  • Insert multiple images across folders into Word document at once.
  • Merge and combine multiple Word files across folders into one with your desired order.
  • Split the current document into separate documents according to heading, section break or other criteria.
  • Convert files between Doc and Docx, Docx and PDF, collection of tools for common conversions and selection, and so on...
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Thank you very much
This helps me to save time I was doing this manually, was 60 pages after 2 pages I get tired and start looking other shortcut
THANKS
This comment was minimized by the moderator on the site
is there a way to make this word on google docs, I did the steps but this will only work for the desktop and online versions of microsoft word
This comment was minimized by the moderator on the site
Thank you! This saved me hours from having to individually collapse 70+ pages of several broken sentences into paragraphs. This is GENIUS.
This comment was minimized by the moderator on the site
First step, that I have tested, is brilliant enough. It was the best trick I have heard about. Thank you!
This comment was minimized by the moderator on the site
Thanks mate
This comment was minimized by the moderator on the site
excelente, me salvaste la vida.
This comment was minimized by the moderator on the site
American Motors Concord 1978-1979 2.0LTS, American Motors Gremlin 1977-1978, American Motors Spirit 1979 2.0LTS 4L
Audi 100 1970-1971, Audi 100 1972-1977 1.9LTS 4L
Audi 100 1989-1991 2.3LTS 5L
Audi 100 1992-1994 2.8LTS 6V
Audi 200 1989 2.2LTS 5L
Audi 200 1990-1991 2.2LTS TURBO 5L
Audi 4000 1980
Audi 4000 1980-1987
Audi 4000 1981-1983
Audi 4000 1984-1987
Audi 5000 1978-1988
Audi 5000 1987-1988
Audi 80 1988-1990
Audi 80 1988-1989
Audi 80 1991-1992
Audi 90 1988-1992
Audi 90 1988-1992 2.3LTS 5L
Audi 90 1993-1995 2.8LTS 6V
Audi A3 1997-2005 1.8LTS TURBO 4L
Audi A3 2008-2009 1.8LTS TURBO 4L
Audi A3 1997 2.0LTS DIESEL TURBO 5L
Audi A3 2004 2.0LTS 4L
Audi A3 2005-2006 2.0LTS MEX 4L
Audi A4 1995-1997 1.8LTS TURBO 4L
Audi A6 1995 2.8LTS 6V
Audi A6 1995 2.8LTS MOTOR:AFC 6V
Audi Cabriolet 1994-1995 2.8LTS 6V
Audi Coupe 1981-1987 2.2LTS 5L
Audi Coupe 1987-1991 2.3LTS 5L
Audi Fox 1973-1974 1.5LTS 4L
Audi Fox 1975-1979 1.6LTS 4L
Audi Quattro 1983-1986 2.2LTS 5L
Audi Rs6 2003-2004 4.2LTS 8V
Audi S3 2000-2004 1.8LTS 4L
Audi S4 1992-1994 2.2LTS TURBO 5L
Audi S6 1995 2.2LTS TURBO 5L
Audi S6 1996-1997 2.2LTS 5L
Audi Tt 2000-2006 1.8LTS TURBO 4L
Bmw 325 1986-1988 2.7LTS 6L
Bmw 325E 1984-1987 2.7LTS 6L
Bmw 325Es 1986-1987 2.7LTS 6L
Bmw 325I 1987-1992 2.5LTS 6L
Bmw 325Is 1987-1991 2.5LTS 6L
Bmw 325Ix 1988-1991 2.5LTS 6L
Bmw 525I 1989-1990 2.5LTS 6L
Bmw 528E 1982-1988 2.7LTS 6L
Lotus Elan 1968-1975 1.6LTS 4L
Pontiac Sunrunner 1995-1997 1.6LTS 4L
Porsche 924 1977-1982 2.0LTS 4L
Seat Alhambra 1996-2000 2.0LTS 4L
Seat Alhambra 2002-2003 1.8LTS MEX 4L
Seat Alhambra 2004-2007 1.8LTS TURBO 4L
Seat Alhambra 2004-2005 2.8LTS 6V
Seat Altea 2004-2015 1.6LTS 4L
Seat Cordoba 2001-2002 1.6LTS MEX 4L
Seat Cordoba 2003-2004 2.0LTS MEX 4L
Seat Cordoba 2005-2009 1.6LTS 4L
Seat Cordoba 2005-2009 2.0LTS 4L
Seat Ibiza 2001-2002 1.6LTS MEX 4L
Seat Ibiza 2003-2012 2.0LTS 4L
Seat Ibiza 2004-2012 1.6LTS 4L
Seat Ibiza 2006 1.8LTS 4L
Seat Ibiza 2007 1.8LTS TURBO 4L
Seat Ibiza 2008 1.8LTS TURBO MEX 4L
Seat Leon 2001-2004 1.8LTS MEX 4L
Seat Leon 2001-2004 1.8LTS TURBO MEX 4L
Seat Leon 2005-2006 1.8LTS 4L
Seat Leon 2006 2.0LTS 4L
Seat Toledo 2001-2003 1.8LTS MEX 4L
Seat Toledo 2001-2003 1.8LTS TURBO MEX 4L
Seat Toledo 2004-2005 1.8LTS 4L
Seat Toledo 2006 2.0LTS 4L
Toyota Hiace 1977-1979 2.0LTS 4L
Toyota Hilux 1975-1989 2.0LTS 4L
Toyota Hilux 1990-1993 1.8LTS 4L
Volkswagen Atlantic 1981-1982 1.6LTS 4L
Volkswagen Atlantic 1982-1987 1.8LTS 4L
Volkswagen Beetle 1998-2011 2.0LTS 4L
Volkswagen Beetle 1999-2005 1.8LTS TURBO 4L
Volkswagen Cabrio 1995-2002 2.0LTS 4L
Volkswagen Cabriolet 1985-1993 1.8LTS 4L
Volkswagen Caddy 1982 1.5LTS 4L
Volkswagen Caddy 1993-1994 1.8LTS 4L
Volkswagen Caribe 1982-1987 1.8LTS 4L
Volkswagen Combi 1990-2001 1.8LTS 4L
Volkswagen Combi 1997 2.8LTS 6 Cil
Volkswagen Corrado 1990-1992 1.8LTS SUPERCARGADO 4L
Volkswagen Corsar 1984-1988 1.8LTS 4L
Volkswagen Dasher 1974-1975 1.5LTS 4L
Volkswagen Dasher 1976-1980 1.6LTS 4L
Volkswagen Derby 1994-2009 1.8LTS 4L
Volkswagen Derby 2001-2004 2.0LTS MEX 4L
Volkswagen Fox 1987-1993 1.8LTS 4L
Volkswagen Golf 1985-2006 1.8LTS 4L
Volkswagen Golf 1990-2010 2.0LTS 4L
Volkswagen Jetta 1980 1.6LTS 4L
Volkswagen Jetta 1981-1984 1.7LTS 4L
Volkswagen Jetta 1984-1999 1.8LTS 4L
Volkswagen Jetta 1990-2005 2.0LTS 4L
Volkswagen Jetta 2012-2013 2.0LTS 4L
Volkswagen Jetta 2001-2005 1.8LTS TURBO 4L
Volkswagen Jetta 2009-2012 1.8LTS TURBO 4L
Volkswagen Jetta 2006-2008 2.0LTS MEX 4L
Volkswagen Jetta 2011-2014 2.0LTS MOTOR:CBPA 4L
Volkswagen Jetta Clasico 2011-2015 2.0LTS 4L
Volkswagen Passat 1990-1997 2.0LTS 4L
Volkswagen Passat 1993 1.8LTS 4L
Volkswagen Passat 2001 2.8LTS MOTOR:ATQ 6V
Volkswagen Pointer 1998-2009 1.8LTS 4L
Volkswagen Pointer Pickup 1999-2009 1.8LTS 4L
Volkswagen Polo 2003-2007 2.0LTS 4L
Volkswagen Quantum 1982-1983 1.7LTS 4L
Volkswagen Quantum 1983-1988 2.2LTS 5L
Volkswagen Quantum 1984-1985 1.8LTS 4L
Volkswagen Rabbit 1975-1980 1.5LTS 4L
Volkswagen Rabbit 1976-1980 1.6LTS 4L
Volkswagen Rabbit 1981-1984 1.7LTS 4L
Volkswagen Rabbit 1983-1984 1.8LTS 4L
Volkswagen Rabbit Convertible 1980 1.6LTS 4L
Volkswagen Rabbit Convertible 1981-1983 1.7LTS 4L
Volkswagen Rabbit Convertible 1984 1.8LTS 4L
Volkswagen Rabbit Pickup 1980 1.5LTS 4L
Volkswagen Rabbit Pickup 1980 1.6LTS 4L
Volkswagen Rabbit Pickup 1981-1983 1.7LTS 4L
Volkswagen Scirocco 1975-1978 1.5LTS 4L
Volkswagen Scirocco 1976-1980 1.6LTS 4L
Volkswagen Scirocco 1981-1983 1.7LTS 4L
Volkswagen Scirocco 1984-1989 1.8LTS 4L
Volkswagen Sedan 1978-1979 1.6LTS 4H
Volkswagen Sedan 1993-2003 1.6LTS 4L
Volkswagen Sharan 2002-2008 1.8LTS TURBO 4L
Volkswagen Super Beetle 1978-1980 1.6LTS 4H
Volkswagen Transporter 1985 1.9LTS DIESEL 4L
Volkswagen Transporter 1986-1991 2.1LTS 4H
Volkswagen Transporter 1990-1992 1.8LTS 4L
Volkswagen Transporter 1990-1993 2.0LTS 4L
Volkswagen Van 2003-2008
Volkswagen Vanagon 1983-1985
Volkswagen Vanagon 1986-1989
Volkswagen Vanagon 1990-1991
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations

Follow Us

Copyright © 2009 - www.extendoffice.com. | All rights reserved. Powered by ExtendOffice. | Sitemap
Microsoft and the Office logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.
Protected by Sectigo SSL