跳到主要内容

如何删除Word中的所有缩进?

通常,您可以在Word中格式化文档时使用各种类型的缩进。 但是谈到删除所有缩进,例如左缩进,悬挂缩进,第一行缩进和右缩进,您如何快速完成呢? 本教程将向您展示三种删除Word中所有缩进的方法。

一个很棒的工具,只需单击一下即可删除Word文档中的所有缩进!

随着 删除所有缩进 的特点 Kutools for Word,只需单击一下鼠标,就可以轻松地从整个Word文档或特定选择中删除各种缩进,包括由空格或制表符生成的第一行缩进,而这些空格或制表符不能在Word中进行布局删除。


Kutools for Word:一个功能强大的加载项包含100多种工具,可以在您的Word日常工作中提高80%的工作效率! 立即获取!


删除所有带有布局的缩进(页面布局)

实际上,通过在Word中设置页面布局,您可以快速从选择中删除所有缩进或整个文档。

注: 此方法不能删除由空格或制表符引起的第一行缩进。 VBA方便的工具 可以删除它们。

1。 选择要从中删除缩进的段落。
如果需要从整个文档中删除所有缩进,可以单击以激活文档,然后同时按Ctrl + A键选择整个文档。

2。 去的 组上 布局 (或 页面布局)标签,然后:
(1)在 方块,请输入 0 然后按 输入 键;
(2)在 方块,请输入 0 然后按 输入 键。

现在,所有缩进(由空格或制表符制成的第一行缩进除外)都将被立即删除。


使用段落功能删除所有缩进

Office 选项卡:为 Word、Excel、PowerPoint 带来选项卡式界面...
ot字中间广告100
立即增强您的工作流程。      了解更多       免费下载

通常,我们可以使用 特征。 这是您快速删除所有左缩进的详细说明

注: 此方法不能删除由空格或制表符引起的第一行缩进。 VBA方便的工具 可以删除它们。

1。 选择要删除缩进的段落,单击鼠标右键,然后选择 从上下文菜单中。 看截图:

2。 在“段落”对话框中,输入 0 两者都 框,选择 (无) 来自 Special 下拉列表,然后单击 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 删除所有缩进

要删除所有缩进,Format 函数无法删除使用空格或制表符缩进的首行缩进,而 VBA 又太复杂。现在向您推荐最方便的方法 - 使用 Kutools for Word。使用 Kutools for Word。只需单击一下即可删除所有缩进

Kutools for Word:一个功能强大的加载项包含100多种工具,可以在您的Word日常工作中提高80%的工作效率! 立即获取!

只需点击 库图尔s> 缩进 > 删除所有缩进,各种缩进会立即从整个文档中删除。
如果您需要从某个选择中删除所有缩进,请首先选择内容,然后单击 库图尔s> 缩进 > 删除所有缩进.

Word 的 Kutools 删除缩进 该功能还支持删除所有空格/制表符缩进,删除所有第一行缩进,删除所有左缩进,删除所有右缩进。

最佳办公生产力工具

Kutools for Word - 通过 Over 提升您的文字体验 100 显着特点!

深入了解下面突出显示的功能或 单击此处探索 Kutools for Word 的全部功能.

📘 文档掌握: 分页  /  合并文件  /  以各种格式导出选择(PDF/TXT/DOC/XLSX)  /  批量转换为PDF  /  将页面导出为图像  /  一次打印多个文件 ...

内容编辑: 批量查找和替换 跨多个文件   /  调整所有图片的大小   /  转置表行和列  /  将表格转换为文字 ...

🧹 轻松清洁扫开 多余的空间  /  分节符  /   所有标题  /  文本框  /  超链接  /  如需更多删除工具,请前往我们的删除组

创意插入: 插页 千位分隔符  /  复选框  /  单选按钮  /  二维码  /  条码  /  对角线表  /  公式标题  /  图片说明  /  表标题  /  多张图片  /  在我们的插入组中发现更多信息

🔍 精准选择: 精确定位特定页面  /    /  形状  /  标题段落  /  使用我们的选择组轻松导航

星级增强: 快速导航至任何位置  /  自动插入重复文本  /  在文档窗口之间无缝切换  /  11 转换工具 ...

使用 Kutools 转换您的 Word 任务。 👉 立即下载并试用 30 天 🚀。

了解更多       免费下载      购买
 
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