跳到主要內容

如何刪除Word中的所有縮進?

通常,您可以在Word中格式化文檔時使用各種類型的縮進。 但是談到刪除所有縮進,例如左縮進,懸掛縮進,第一行縮進和右縮進,您如何快速完成呢? 本教程將向您展示三種刪除Word中所有縮進的方法。

一個很棒的工具,只需單擊一下即可刪除Word文檔中的所有縮進!

隨著 刪除所有縮進 的特點 Kutools for Word,只需單擊一下鼠標,您就可以輕鬆地從整個Word文檔或特定選擇中刪除各種縮進,包括由空格或製表符生成的第一行縮進,而這些空格或製表符無法在Word中通過佈局刪除。


Kutools for Word:強大的插件,包含100+工具,可以讓你的Word日常工作效率提升80%! 現在得到它!

推薦的Word生產工具

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

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


刪除所有帶有佈局的縮進(頁面佈局)

實際上,通過在Word中設置頁面佈局,您可以快速從選擇中刪除所有縮進或整個文檔。

注: 此方法不能刪除由空格或製表符引起的第一行縮進。 VBA方便的工具 可以刪除它們。

1。 選擇要從中刪除縮進的段落。
如果需要從整個文檔中刪除所有縮進,可以單擊以激活文檔,然後同時按Ctrl + A鍵選擇整個文檔。

2。 去的 組上 佈局 頁面佈局)標籤,然後:
(1)在 左列 方塊,請輸入 0 並按下 Enter 鍵;
(2)在 方塊,請輸入 0 並按下 Enter 鍵。

現在,所有縮進(由空格或製表符製成的第一行縮進除外)都將被立即刪除。


使用段落功能刪除所有縮進

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

通常,我們可以使用 特徵。 這是您快速刪除所有左縮進的詳細說明

注: 此方法不能刪除由空格或製表符引起的第一行縮進。 VBA方便的工具 可以刪除它們。

1。 選擇要刪除縮進的段落,單擊鼠標右鍵,然後選擇 從上下文菜單中。 看截圖:

2。 在“段落”對話框中,輸入 0 兩者都 左列 框,選擇 (無) 來自 特別 下拉列表,然後單擊 OK 按鈕。 看截圖:

現在,所有縮進(由空格或製表符製成的第一行縮進除外)都將被立即刪除。


使用VBA刪除所有縮進

如果您擅長宏,還可以使用VBA代碼輕鬆地從選擇中刪除所有縮進或整個Word文檔。

1。 選擇要刪除所有縮進的段落或整個文檔。

2。 按 Alt + F11鍵 鍵一起打開VBA窗口,單擊 插入 > 模塊 創建一個新的“模塊”窗口,然後將下面的代碼粘貼到該窗口中:

VBA:刪除所選內容中的所有縮進或Word中的整個文檔

Sub remove_indents()
With Selection.ParagraphFormat
.CharacterUnitLeftIndent = 0
.CharacterUnitRightIndent = 0
.CharacterUnitFirstLineIndent = 0
.LeftIndent = CentimetersToPoints(0)
.RightIndent = CentimetersToPoints(0)
.FirstLineIndent = CentimetersToPoints(0)
End With
End Sub
Sub remove_all_the_first_line_indent_spaces()
Dim i As Paragraph, n As Long
Application.ScreenUpdating = False 'close screen and refresh
For Each i In ActiveDocument.Paragraphs 'cycling in the pragraphs of the active document
For n = 1 To i.Range.Characters.Count
If i.Range.Characters(1).Text = " " Or i.Range.Characters(1).Text = " " Or i.Range.Characters(1).Text = Chr(9) Then
i.Range.Characters(1).Delete
Else: Exit For
End If
Next n
Next
Application.ScreenUpdating = True 'restore screen and refresh
End Sub
Sub remove_all_indents()
remove_indents
remove_all_the_first_line_indent_spaces
End Sub

3。 點擊 按鈕或按 F5 鍵以應用VBA代碼。


使用Kutools for Word刪除所有縮進

要刪除所有縮進,格式功能不能刪除使用空格或製表符縮進的第一行縮進,而VBA太複雜了。 現在向您推薦最方便的方法-使用Kutools for Word。 使用Kutools for Word。 一鍵式刪除所有縮進

Kutools for Word:強大的插件,包含100+工具,可以讓你的Word日常工作效率提升80%! 現在得到它!

只需點擊 庫圖爾s> 縮進 > 刪除所有縮進,各種縮進會立即從整個文檔中刪除。
如果需要從某個選擇中刪除所有縮進,請首先選擇內容,然後單擊 庫圖爾s> 縮進 > 刪除所有縮進.

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
Actually I have found an easy way to do this, when I had a book typed in Word with the first line of each paragraph indented with the Tab key, and I wished to abolish the indents. You use Find and Replace.
You can't replace by simply typing ghe tab key directly into the Find box, because it will respond by moving the cursor to the next box, but it will accept the indented space if you copy it into the Find box with Copy and Paste.
So do the following.
Call up your document, go to the start of one of the indented spaces at the start of a paragraph, highlight it by holding down Shift +right arrow key, and copy with Control-C.Call up Find and Replace, put the cursor into the Find box, and Paste (Control-V). You should find the cursor leaps an appropriate number of spaces along the box.Go to he Replace box and type in whatever you want to replace the indent with (if nothing then just click in the Replace box before the next step)Press on the Replace All box and Bob's your uncle as they say in England. The indents have vanished.

This comment was minimized by the moderator on the site
This was fantastic. I have been trying to reformat a book to put on Kindle. Even the Kindle support team didn't know about this feature. It was fabulous. I just copied your VBA codes for indent and presto! Two weeks of utter frustration gone! It worked instantly. Thank you so much for this valuable information.
This comment was minimized by the moderator on the site
The scrolling function does not work on this site and the instructions didn't remove the indents, unfortunately.
This comment was minimized by the moderator on the site
Very Very Useful, thank you so much
This comment was minimized by the moderator on the site
Hello: I am an author who is about ready to shoot my laptop! For some unknown reason every time I hit the tab button the cursor moves down to the bottom of the text! It's frustrating as hell. I just want to be able to indent 5 spaces whenever I start a new paragraph. Sounds easy but for some reason this laptop is not letting me do it. I am using MS Word 2007. Thank you, Paul M Frazee
This comment was minimized by the moderator on the site
Thanks a lot, method 1 worked fine for me in Word 2013.
This comment was minimized by the moderator on the site
In support of this page and its author, I just want to extend my thanks. As a writer, I've posted stories to websites for my readers. After having done so, and making minor corrections here and there, I would then copy and paste the text as a new document to record all the new changes I had made. Only I found out the hardway, I couldn't get rid of the formatting. Your little VBA code worked miracles for me! I'm so glad I found this page! Thank you!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations