How to remove first-line indents made with spaces or tabs in Word?
If your Word document contains paragraphs with first-line indents created by space or tab characters, removing them manually can be tedious. This tutorial introduces two quick and effective methods to remove all whitespace indents from the first lines of paragraphs.
Remove first-line indents made with spaces or tabs using VBA
Remove first-line indents made with spaces or tabs using Kutools 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 first-line indents made with spaces or tabs using VBA
You can use the following VBA code to automatically remove all first-line indents made with spaces or tab characters in a Word document.
- Press Alt + F11 to open the Microsoft Visual Basic for Applications window.
- Click Module from the Insert tab, then copy and paste the following VBA code into the module window.
Sub remove_all_the_first_line_indent_spaces() Dim i As Paragraph, n As Long Application.ScreenUpdating = False 'turn off screen updating For Each i In ActiveDocument.Paragraphs 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 updating End Sub
- Click the Run
button to execute the code.
Office Tab: Brings tabbed interfaces to Word, Excel, PowerPoint...![]() |
Enhance your workflow now. Learn More about Office Tab Free Download |
Remove first-line indents made with spaces or tabs using Kutools for Word
Want a quicker solution? Kutools for Word lets you remove all first-line indents made with spaces or tabs in just one click from the entire document or within a selected range.
- Click Kutools > Indents (in the Remove group) > Remove All Spaces/Tab Indents.
Note: If you select part of the document first, this tool will only remove first-line indents made with spaces or tab characters within that selection.
Best Office Productivity Tools
Kutools for Word - Elevate Your Word Experience with Over 100 Remarkable Features!
π€ Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish (Preserve Format) / Super Translate (Preserve Format) / AI Redaction / AI Proofread...
π Document Mastery: Split Pages / Merge Documents / Export Selection in Various Formats (PDF/TXT/DOC/HTML...) / Batch Convert to PDF...
β 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 / Text Boxes / Hyperlinks / For more removing tools, head to the Remove group...
β Creative Inserts: Insert Thousand Separators / Check Boxes / Radio Buttons / QR Code / Barcode / 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 to Any Location / Auto-Insert Repetitive Text / Toggle Between Document Windows / 11 Conversion Tools...
π Supports 40+ Languages: Use Kutools in your preferred language β supports English, Spanish, German, French, Chinese, and 40+ others!

β¨ Kutools for Office β One Installation, Five Powerful Tools!
Includes Office Tab Pro Β· Kutools for Excel Β· Kutools for Outlook Β· Kutools for Word Β· Kutools for PowerPoint
π¦ Get all 5 tools in one suite | π Seamless integration with Microsoft Office | β‘ Save time and boost productivity instantly
Best Office Productivity Tools
Kutools for Word - 100+ Tools for Word
- π€ Kutools AI Features: AI Assistant / Real-Time Assistant / Super Polish / Super Translate / AI Redaction / AI Proofread
- π Document Mastery: Split Pages / Merge Documents / Batch Convert to PDF
- β Contents Editing: Batch Find and Replace / Resize All Pictures
- π§Ή Effortless Clean: Remove Extra Spaces / Remove Section Breaks
- β Creative Inserts: Insert Thousand Separators / Insert Check Boxes / Create QR Codes
- π Supports 40+ Languages: Kutools speaks your language β 40+ languages supported!