Tip: Other languages are Google-Translated. You can visit the English version of this link.
Log in
x
or
x
x
Register
x

or

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


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

Hot
Amazing! Use Efficient Tabs in Word (Office) like Chrome, Firefox and New Internet Explorer!

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 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.




Recommended Word Productivity Tools

 

Kutools For Word - More Than 100 Advanced Features For Word, Save Your 50% Time

  • Complicated and repeated operations can be done one-time processing in seconds.
  • Insert multiple images across folders into Word document at once.
  • Merge and combine multiple Word files across folders into one with your desired order.
  • Split the current document into separate documents according to heading, section break or other criteria.
  • Convert files between Doc and Docx, Docx and PDF, collection of tools for common conversions and selection, and so on...
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.

Be the first to comment.