Skip to main content

How to remove whitespace indents in all first lines in Word?

Author: Amanda Li Last Modified: 2012-08-29

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


arrow blue right bubbleRemove whitespace(space character or tab character) indents in all first lines with VBA

Office Tab: Brings tabbed interfaces to Word, Excel, PowerPoint...
ot word middle ad 100
Enhance your workflow now.      Learn More about Office Tab       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 doc-remove-numeric-characters-1 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


arrow blue right bubbleRemove 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:

doc-remove-whitespace-indent-1

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  /  Get Quick Answers, 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 the 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 to Any Location  /  Auto-Insert Repetitive Text  /  Toggle Between Document Windows  /  11 Conversion Tools...

πŸ‘‰ Want to try these features? Download Kutools for Word now! πŸš€
 
Comments (0)
No ratings yet. Be the first to rate!
There are no comments posted here yet
Leave your comments
Posting as Guest
Rate this post:
0   Characters
Suggested Locations