Skip to main content

Kutools for Office β€” One Suite. Five Tools. Get More Done.

How to remove first-line indents made with spaces or tabs in Word?

Author Amanda Li Last modified

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.

  1. Press Alt + F11 to open the Microsoft Visual Basic for Applications window.
  2. 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
  3. Click the Run Run button to execute the code.
Office Tab: Brings tabbed interfaces to Word, Excel, PowerPoint...
Navigate through documents using Office Tab
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.

Kutools for Word, equipped with AI πŸ€–, offers over 100 handy features to simplify your tasks.
  1. Click Kutools > Indents (in the Remove group) > Remove All Spaces/Tab Indents.
    Remove All Spaces/Tab Indents option on the Kutools tab on the ribbon

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.

Kutools for Word is the ultimate Word add-in that streamlines your work and boosts your document processing skills. Get It Now!

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 and Kutools Plus tabs on the Word Ribbon
πŸ‘‰ Want to try these features? Download Kutools for Word now! πŸš€
 

✨ 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