3 Ways to Prevent Closely Related Words from Breaking across Two Lines in Your Word Document

In this post, we prepare to demonstrate you 3 ways to prevent closely related words from breaking across two lines in your Word document.

Once in a while, when working on a Word draft, we can find that two or multiple related words are forced into different lines due to limited space, such as below:Related Words Forced into Different Lines

Nevertheless, if you want to keep them together on the same line, there are 3 actual ways which can help you with it.

Method 1: Use Non-breaking Space

  1. First and foremost, click “Home” tab in the Ribbon.
  2. Then click the button in “Paragraph” to show the hidden marks of the document.
  3. Next select the space between the two words which you want to stick them together.Click "Home"->Click the Show or Hide Mark Button->Select the Space
  4. Now press “Ctrl+ Shift+ Space bar”. You will see the dot is replaced with a circle in superscript.Related Words on the Same Line

Meanwhile, in case you forget the shortcuts, you can always find the non-breaking space in this way:

  1. First click “Insert” then “Symbol”.
  2. Next choose “More Symbols”.Click "Insert"->Click "Symbol"->Choose "More Symbols"
  3. And in “Symbol” box, click “Special Characters”.
  4. Find and select “Nonbreaking Space”, then click “Insert”.Click "Special Characters"->Select "Nonbreaking Space"->Click "Insert"

Method 2: Use “Replace” Feature

If it is a phrase that you want to keep together, you can use this way to avoid replacing space with non-breaking space repeatedly.

  1. To start with, select all target words.
  2. Then click “Replace” in “Editing” group under “Home” tab. Or press “Ctrl+ H” instead.
  3. Ensure the “Replace” tab is on. Enter one space in “Find what” text box.
  4. And input “^s” in “Replace with” text box.
  5. Lastly, click “Replace All”.Enter a Space in "Find what" Box->Enter "^s" in "Replace with" Box->Click "Replace All"
  6. Click “No” to stop performing replacement on the whole document.Keep a Phrase on the Same Line

Method 3: Run Macro

  1. Firstly, activate the “Developer” tab and click on it.
  2. Then click “Visual Basic” in “Code” group. Or you can choose to press “Alt+ F11” to trigger the VBA editor.Click "Developer"->Click "Visual Basic"
  3. Next click “Normal” and then “Insert”.
  4. And choose “Module” on the menu.Click"Normal"->Click "Insert"->Click "Module"
  5. Next double click on the new module to open coding space.
  6. Paste the following codes there:
Sub ReplaceSpaceWithNonBreakingSpace()
  Selection.Find.ClearFormatting
  Selection.Find.Replacement.ClearFormatting
 
  With Selection.Find
    .text = " "
    .Replacement.text = "^s"
    .Forward = True
    .Wrap = wdFindStop
    .Format = False
    .MatchCase = False
    .MatchWholeWord = False
    .MatchWildcards = False
    .MatchSoundsLike = False
    .MatchAllWordForms = False
  End With
  Selection.Find.Execute Replace:=wdReplaceAll
End Sub
  1. Finally, click “Run” or hit “F5”.Paste Codes->Click "Run"

The result is as the same as that of method 2.

Rescue Word Files

As a precaution measure, we suggest taking backup of your important files to bypass unexpected loss. However, we all understand even a backup can fail. Therefore, to regain our file, docx repair will play a vital role. One thing you need keep in mind is to choose a trustful repairing tool.

Author Introduction:

Vera Chen is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including tool to repair Excel and pdf repair software products. For more information visit www.datanumen.com

Comments are closed.