跳到主要內容

如何在Word中刪除所有空的段落?

如果文檔覆蓋200頁,其中包含數百個空白段落,那麼一一刪除所有空白段落會很痛苦。 如何高效,快速地刪除所有空段? 花幾分鐘查看本教程,您將找到答案。

使用查找和替換功能刪除所有空的段落

使用VBA刪除所有空白的段落

用Kutools for Word刪除所有空的段落

推薦的Word生產工具

Kutools for Word:整合人工智慧 🤖,超過 100 種進階功能可節省 50% 的文件處理時間。免費下載

Office Tab:在 Word(和其他 Office 工具)中引入類似瀏覽器的選項卡,簡化了多重文件導覽。免費下載


箭頭藍色右氣泡 使用查找和替換功能刪除所有空的段落

Office 標籤:為 Word、Excel、PowerPoint 帶來選項卡式介面...
ot字中間廣告100
立即增強您的工作流程。      閱讀更多       免費下載

沒有人喜歡花費大量時間一一刪除所有空白的段落。 只要我們知道可以在“查找內容”字段中的“段落標記”中找到空的段落符號,通常會使用Word中的“查找和替換”功能。

1。 點擊 首頁 > 更換 啟用此實用程序。

2。 點擊 更多>> 按鈕以彈出更多選項。 見下面的截圖:

3.將光標放在 尋找什麼 字段,然後選擇 段落標記 來自 特別 下拉菜單;

4.選擇之後 段落標記,將會有一個“^p”標記顯示在 尋找什麼 領域。

5。 輸入“^p“使”^ P ^ P“在 尋找什麼 字段並單擊 “全部替換”.

筆記:

在“^p”不僅會刪除文檔中所有空白的段落,還會刪除文檔中的所有段落標記,從而使所有文本在一個段落中過於接近。

在“^ P ^ P”將僅刪除所有空白段落(空白段落標記)。


箭頭藍色右氣泡 使用VBA刪除所有空的段落

如果您想使用Macro處理Word文檔,則還可以使用VBA代碼刪除Word中所有空的段落。

1.按“ALT-F11”打開 Microsoft Visual Basic應用程序 窗口。

2。 點擊 模塊 插入 標籤,將以下VBA代碼複製並粘貼到 模塊 窗口。

刪除空白段落的VBA代碼:

子Deleemptyparagraphs()
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
隨著Selection.Find
.Text =“ ^ p ^ p”
.Replacement.Text =“”
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchByte = 假
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = False
.MatchFuzzy =假
結束
Selection.Find.Execute替換:= wdReplaceAll
END SUB

4。 點擊 運行宏 在運行選項卡上。


箭頭藍色右氣泡 用kutools for Word刪除所有空的段落

要刪除單詞中所有空的段落,內置功能需要一些步驟,而宏似乎太複雜了,難以理解。 有沒有一種簡單的方法可以幫助我們快速刪除所有空的段落? 是, Kutools for Word 是您最好的解決方案。

Kutools for Word,一個方便的加載項,包括多組功能,可簡化您的工作並增強處理Word文檔的能力。 免費試用45天! 現在得到它!

1.請點擊以下方式應用此實用程序 庫工具 > 空參數 > 刪除空的段落標記。 看截圖:

2。 點擊後 刪除空的段落標記,所有空的段落將從整個文檔中刪除。

備註:如果您只想從文檔的選定部分中刪除空白段落,Kutools for Word也可以為您提供幫助,請閱讀更多信息 這裡.


最佳辦公生產力工具

Kutools for Word - 透過 Over 提升您的文字體驗 100 顯著特點!

🤖 Kutools 人工智慧助手:用人工智慧改變你的寫作 - 生成內容  /  重寫文字  /  總結文件  /  查詢資料 基於文檔,全部在Word中

📘 文件掌握: 分頁  /  合併文件  /  以各種格式匯出選擇(PDF/TXT/DOC/HTML...)  /  批次轉換為PDF  /  將頁面匯出為圖像  /  一次列印多個文件...

內容編輯: 批量查找和替換 跨多個文件  /  調整所有圖片的大小  /  轉置表行和列  /  將表格轉換為文字...

🧹 輕鬆清潔: 移開 多餘的空間  /  分節符  /  所有標題  /  文本框  /  超鏈接  / 如需更多拆卸工具,請前往我們的 刪除組...

創意插入: 插入 千位分隔符  /  複選框  /  單選按鈕  /  QR Code  /  條碼  /  對角線表  /  公式標題  /  圖片說明  /  表格標題  /  多張圖片  / 發現更多 插入組...

🔍 精準選擇:精確定位 特定頁面  /    /  形狀  /  標題段落  / 增強導航功能 更多 選擇功能...

星級增強: 快速導航至任何位置  /  自動插入重複文字  /  在文檔視窗之間無縫切換  /  11 轉換工具...

???? 想嘗試這些功能嗎? Kutools for Word 提供了 60天免費試用,沒有任何限制! 🚀
 
Comments (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
to delete empty paragraph, simpe luse this:


Find ^p^p and replace with ^p


OR if you'd like to do otherwise, find ^p and replace with ^p^p
This comment was minimized by the moderator on the site
Oh, thank you so much. I was doing it all manually in a 137,000 word document. You saved my sanity by helping me do it all at once. Bless you.
This comment was minimized by the moderator on the site
The find/replace works fine ... unless the empty paragraph is the first paragraph of a cell in a table. First paragraphs are not a problem in the text, you can search for section and page breaks followed by a paragraph, cells and text boxes are a problem. FYI - CTRL+SHIFT+8 just turns off display of paragraph marks, doesn't delete the empty paragraphs.
This comment was minimized by the moderator on the site
An easier solution is to simply use CTRL+SHIFT+8
This comment was minimized by the moderator on the site
Your first 2 suggestions do not work, I tried both and wound up with a large document all one paragraph. Both options took ALL Paragraphs marks out. I don't know if you are just trying to sell the software program you recommended or what, but your first 2 suggestions do not work as you claim they will. I don't know if anyone else has had any luck doing it, but they did not work for me, good thing I can undo this mess.
This comment was minimized by the moderator on the site
Find what: ^p^p Replace with: ^p
This comment was minimized by the moderator on the site
Try using CTRL+SHIFT+8
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations