How to remove whitespace indents in all first lines in Word?
If you want to remove all first lines with indents by using whitespace (space characters or Tab characters) in document, this tutorial will introduce you the following tricky methods to quickly remove all first line indents which indent by using white space (space characters and Tab characters).
Remove whitespace(space character or tab character) indents in all first lines with VBA
Remove whitespace(space character or tab character) indents in all first lines with Kutool for Word
Recommended Productivity Tools for Word
Kutools for Word: Integrating AI 🤖, over 100 advanced features save 50% of your document handling time.Free Download
Office Tab: Introduces the browser-like tabs to Word (and other Office tools), simplifying multi-document navigation.Free Download
Remove whitespace(space character or tab character) indents in all first lines with VBA
Office Tab: Brings tabbed interfaces to Word, Excel, PowerPoint... |
Enhance your workflow now. Read More Free Download
|
You can use the following VBA code to remove whitespace (space character or tab character) indents in all first lines in the document.
Step 1: Press “Alt-F11” to open the Microsoft Visual Basic for Application window;
Step 2: Click Module on the Insert tab, copy and paste the following VBA code into the Module window;
Step 3: Then click Run button to apply the VBA.
The VBA code of removing whitespace(space character or tab character) indents in all first line:
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
Remove whitespace(space character or tab character) indents in all first lines with Kutool for Word
Is there an easy way to remove white space indents in all first lines? Yes, Kutool for Word is your best choice. With only one click, you can remove white space indents from all first lines in the document.
Kutools for Word, a handy add-in, includes groups of tools to ease your work and enhance your ability of processing word document. Free Trial for 45 days! Get It Now!
Click Kutools > Remove indents >Remove All First Line Indent Spaces. See screenshot:
Note: if you select a part of the document first, it will only remove the white space indents in all first lines of the selection.
For more detailed information about Remove All First Line Indent Spaces of Kutools for Word, please visit Remove Indents.
Best Office Productivity Tools
Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!
🤖 Kutools AI Assistant: Transform your writing with AI - Generate Content / Rewrite Text / Summarize Documents / Inquire for Information based on Document, all within Word
📘 Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF / Export Pages as Images / Print Multiple Files at once...
✏ Contents Editing: Batch Find and Replace across Multiple Files / Resize All Pictures / Transpose Table Rows and Columns / Convert Table to Text...
🧹 Effortless Clean: Sweap away Extra Spaces / Section Breaks / All Headers / Text Boxes / Hyperlinks / For more removing tools, head to our Remove Group...
➕ Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / Diagonal Line Table / Equation Caption / Image Caption / Table Caption / Multiple Pictures / Discover more in the Insert Group...
🔍 Precision Selections: Pinpoint specific pages / tables / shapes / heading paragraphs / Enhance navigation with more Select features...
⭐ Star Enhancements: Navigate swiftly to any location / auto-insert repetitive text / seamlessly toggle between document windows / 11 Conversion Tools...