Skip to main content

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

Author: Xiaoyang Last Modified: 2024-07-03

When working with text in Microsoft Word, you might encounter situations where you need to merge or combine multiple lines or paragraphs into a single paragraph. This can be useful for improving readability, formatting consistency, or even saving paper when printing large documents.

In this tutorial, we will show you various methods to efficiently merge multiple lines into a single paragraph in a Word document, helping you streamline your text for better presentation and practicality.

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

Best Office Productivity Tools

Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!

🤖 Kutools AI Assistant: Transform your writing with AI - Generate Content  /  Rewrite Text  /  Summarize Documents  /  Get Quick Answers, all within Word

📘 Document Mastery: Split Pages  /  Merge Documents  /  Export Selection in Various Formats (PDF/TXT/DOC/HTML...)  /  Batch Convert to PDF  /  Export Pages as Images  /  Print Multiple Files at once...

Contents Editing: Batch Find and Replace across Multiple Files  /  Resize All Pictures  /  Transpose Table Rows and Columns  /  Convert Table to Text...

🧹 Effortless Clean: Sweap away Extra Spaces  /  Section Breaks  /  All Headers  /  Text Boxes  /  Hyperlinks  /  For more removing tools, head to the Remove group...

Creative Inserts: Insert Thousand Separators  /  Check Boxes  /  Radio Buttons  /  QR Code  /  Barcode  /  Diagonal Line Table  /  Equation Caption  /  Image Caption  /  Table Caption  /  Multiple Pictures  /  Discover more in the Insert group...

🔍 Precision Selections: Pinpoint Specific Pages  /  Tables  /  Shapes  /  Heading Paragraphs  /  Enhance navigation with more Select features...

Star Enhancements: Navigate to Any Location  /  Auto-Insert Repetitive Text  /  Toggle Between Document Windows  /  11 Conversion Tools...

👉 Want to try these features? Download Kutools for Word now! 🚀
 
Comments (10)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
La menor evaluada, da como resultado una conducta represiva, pasiva-agresiva y primitiva, es muy energética y tolera al medio que le rodea, es una adolescente extrovertida, es algo insegura y suele tener problemas emocionales.
Da también, el resultado de ser indiferente y esto le ocasiona miedo, es rebelde en relación madre-hija, negativa en ocasiones y tiene inmadurez psicosexual.

La menor evaluada tiene la necesidad de ser reconocida y mostrarse ante su sociedad. Para ello suele ocupar el espacio personal, no con el propósito de llamar la atención sino para que se den cuenta que existe.
Es emotiva y sensible, ama su tranquilidad, peros se reprime ante algún suceso. Siente presión ante sus figuras paternas, ante eso le suele generar estrés, agobia miento y depresión, lo que se asume como la pérdida de confianza a sí misma. Lo que resalta teniendo problemas con su identidad.
This comment was minimized by the moderator on the site
Thank you very much, you saved my time a lot! another issue is that all sentences merged together in one praragraph without any SPACE between before and after sentences! how can i put an SPACE between before/after sentences in this way? please help me if there is any solution.
This comment was minimized by the moderator on the site
Hello, SALSEN,

If you need to add a space before each merged sentence, simply enter a space in the Replace text box, and then apply the replace operation.

Please have a try, thank you!
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
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
Thanks mate
There are no comments posted here yet
Load More
Leave your comments
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations