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:
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
- First and foremost, click “Home” tab in the Ribbon.
- Then click the button in “Paragraph” to show the hidden marks of the document.
- Next select the space between the two words which you want to stick them together.
- Now press “Ctrl+ Shift+ Space bar”. You will see the dot is replaced with a circle in superscript.
Meanwhile, in case you forget the shortcuts, you can always find the non-breaking space in this way:
- First click “Insert” then “Symbol”.
- Next choose “More Symbols”.
- And in “Symbol” box, click “Special Characters”.
- Find and select “Nonbreaking Space”, then 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.
- To start with, select all target words.
- Then click “Replace” in “Editing” group under “Home” tab. Or press “Ctrl+ H” instead.
- Ensure the “Replace” tab is on. Enter one space in “Find what” text box.
- And input “^s” in “Replace with” text box.
- Lastly, click “Replace All”.
- Click “No” to stop performing replacement on the whole document.
Method 3: Run Macro
- Firstly, activate the “Developer” tab and click on it.
- Then click “Visual Basic” in “Code” group. Or you can choose to press “Alt+ F11” to trigger the VBA editor.
- Next click “Normal” and then “Insert”.
- And choose “Module” on the menu.
- Next double click on the new module to open coding space.
- 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
- Finally, click “Run” or hit “F5”.
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.
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