How to Remove Blank Paragraph Marks from Word Table Cells
Question details
The user needs a method to delete unwanted extra blank lines and paragraph marks at the beginning or end of Microsoft Word table cells.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Formatting a document containing tables where extra paragraph marks create unwanted blank lines inside the cells.
- Observed behavior
- Extra paragraph marks exist within the cell structure and cannot be removed using standard editing, while toggling the paragraph mark display button only hides them without deleting them.
Before attempting to remove the blank lines, go to the Home tab and click the Paragraph Marks button (¶) or press Ctrl+* to display hidden formatting marks, making it easier to see exactly where the extra paragraphs are located.
Run a VBA Macro to Delete Blank Paragraphs in Cells
Use a VBA macro to automate the removal of extra paragraph marks at the end of table cells without destroying the underlying cell structure.
Because the end-of-cell marker in Word acts similarly to a paragraph mark, manually deleting extra spaces at the end of a cell can be frustrating. A macro can accurately identify an extra final paragraph and remove it automatically.
Press Alt + F11 on your keyboard to open the Microsoft Visual Basic for Applications window.
In the top menu, click 'Insert' and select 'Module' to open a blank coding window.
Copy and paste the following code into the window: Sub RemoveBlankCellParagraphs() Dim rng As Range Dim i As Long, j As Long With Selection.Tables(1) For i = 1 To .Rows.Count For j = 1 To .Columns.Count With .Cell(i, j).Range If .Paragraphs.Count > 1 And Len(Trim(.Paragraphs(.Paragraphs.Count).Range.Text)) = 2 Then Set rng = .Paragraphs(.Paragraphs.Count).Range rng.End = rng.End - 1 rng.Select SendKeys "{BACKSPACE}" End If End With Next j Next i End With End Sub
Close the VBA editor, click anywhere inside your problematic table to select it, press Alt + F8, select 'RemoveBlankCellParagraphs', and click 'Run'.

Manually Delete Blank Lines Inside Small Tables
If you only have a few extra paragraph marks in a small table, you can manually delete them by carefully positioning your cursor.
Quickly Remove Blank Paragraphs with WPS Writer
Unlike Microsoft Word, which often requires complex VBA macros to clean up table cells, WPS Writer includes a powerful built-in typesetting tool that easily detects and deletes extra blank paragraphs with a single click.
- 1. Open your document in WPS: Launch WPS Writer and open the document containing the problematic tables with extra blank lines.
- 2. Navigate to Typesetting Tools: Go to the 'Home' tab on the top ribbon and look for the 'Word Typesetting' icon.
- 3. Delete blank paragraphs: Click the drop-down arrow next to 'Word Typesetting' and select 'Delete Blank Paragraphs' to instantly remove all unwanted empty lines.

Frequently Asked Questions
Why does the Paragraph Marks button on the Home tab not remove the blank lines?
The Paragraph Marks button (¶) is merely a display toggle. It shows or hides formatting symbols like spaces, tabs, and paragraph breaks on your screen to help you edit, but it does not actually alter or delete the formatting content.
Can I use Find and Replace to remove these blank paragraphs in Word tables?
Yes, you can try using Find and Replace by searching for '^p^p' (two paragraph marks) and replacing it with '^p' (one paragraph mark). However, this might not cleanly catch marks at the very end of a table cell because the end-of-cell marker interacts differently with paragraph breaks.
Why are there undeletable blank lines at the end of my table cells?
Every table cell in Word contains an end-of-cell marker that acts similarly to a paragraph mark. If you accidentally press Enter before this marker or paste text that includes extra carriage returns, it creates a blank line that merges closely with the cell structure, making it stubborn to delete normally.




