logo
search
Formatting Issues

How to Preserve Line Breaks When Justifying Text in Word

Maira MehtabMaira Mehtab Sep 22, 2026 868 views

Question details

The user needs to justify the text of a book manuscript without altering the existing line breaks or the total page count, ensuring that carefully placed artwork remains unaffected.

Product
Microsoft Word
Device & OS
not provided
Scenario
Formatting a book manuscript where specific line breaks must be locked to maintain the layout of accompanying artwork across pages.
Observed behavior
Applying standard text justification changes the spacing between words, which recalculates line breaks, pushes words to subsequent lines, and modifies the overall page count.
Before you start

Before adjusting character spacing with macros, ensure you have enabled the Developer tab in Word's ribbon so you can easily access and run VBA scripts.

Solution 1Recommended

Use VBA Macros to Manually Adjust Character Spacing

Tweak the font spacing of selected lines incrementally using macros to maintain the exact words per line while visually simulating justification.

Microsoft Word does not feature a built-in tool to lock line breaks during the automated justification process. Instead, you can manually adjust the character spacing of specific lines. This forces the text to stretch or compress horizontally without pushing words to the next line.

1
Open the VBA Editor

Press Alt + F11 on your keyboard to open the Visual Basic for Applications (VBA) editor in Word.

2
Insert the Addition Macro

Click 'Insert' > 'Module' and paste the following macro code to increase spacing: Sub SpaceAddPoint1() Selection.Font.Spacing = (Selection.Font.Spacing + 0.1) End Sub.

3
Insert the Subtraction Macro

Below the first macro, paste the following code to reduce spacing: Sub SpaceSubtractPoint1() Selection.Font.Spacing = (Selection.Font.Spacing - 0.1) End Sub.

4
Apply to Selected Text

Add these newly created macros to your Quick Access Toolbar for efficiency. Select a line of text in your manuscript and run the appropriate macro repeatedly until the line appears perfectly justified to the margins.

Free Microsoft Office alternative

Try WPS Office for Seamless Document Formatting

If you frequently struggle with Microsoft Word's rigid justification algorithms and complex macro workarounds, consider switching to WPS Office. It provides a lightweight, highly compatible word processing alternative with intuitive layout controls.

  1. 1. Download WPS Office: Visit the official WPS Office website and download the free installation package for your operating system.
  2. 2. Open Your Manuscript: Launch WPS Writer and open your existing .docx manuscript directly without losing any formatting.
  3. 3. Adjust Character Spacing: Highlight your text, right-click to select 'Font', and navigate to the 'Character Spacing' tab to precisely control your layout manually.
Free to download and useFully compatible with Microsoft Word (.docx) formatsFamiliar user interface for seamless migrationPrecise paragraph and character spacing controls
microsoft office alternative - wps office

Frequently Asked Questions

Why does Word change my page count when I justify text?

Justification adjusts the spacing between words to align text evenly with both the left and right margins. This often expands the text width, pushing words to the next line. These small shifts cascade throughout the document, ultimately altering the total page count.

Can I manually change character spacing without using VBA macros?

Yes. You can select the text, press Ctrl+D to open the Font dialog box, navigate to the 'Advanced' tab, and manually enter a custom value in the 'Spacing' field. However, using macros is significantly faster if you need to adjust dozens of individual lines in a manuscript.

Is there a quick keyboard shortcut to justify text in Word?

Yes, you can select the paragraphs you want to adjust and press Ctrl+J on Windows or Cmd+J on Mac to instantly apply standard justified alignment to your text.