---
description: If you often type extra spaces accidentally when composing Outlook email, you may wish to make Outlook auto remove all extra spaces between words. Now, this article will teach you a convenient method to realize it.
title: How to Auto Remove All Extra Spaces between Words in Your Outlook Email
image: https://www.datanumen.com/blogs/wp-content/uploads/2018/01/find-replace-using-wildcards.jpg
---

-
-
-

[Home](https://www.datanumen.com/blogs/) > [Solutions](https://www.datanumen.com/blogs/category/solutions/) > [Office Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/) > [Outlook Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/outlook-solutions/) > How to Auto Remove All Extra Spaces between Words in Your Outlook Email

# How to Auto Remove All Extra Spaces between Words in Your Outlook Email

[Outlook Solutions](https://www.datanumen.com/blogs/category/solutions/office-solutions/outlook-solutions/) September 29, 2025

Share Now:

-
-
-
-
-
-
-
-

*If you often type extra spaces accidentally when composing Outlook email, you may wish to make Outlook auto remove all extra spaces between words. Now, this article will teach you a convenient method to realize it.*

At times, when you compose an email, you may input many extra spaces between words by mistake. They will make the email contents messy. At this point, you’ll hope to remove all these extra spaces. To manually accomplish it, you can utilize “Find & Replace” feature to replace all “(\[ ])\[ ]{1,}” with “\\1” with wildcards. But, in comparison, it would be much more convenient and effective if Outlook is able to auto do this. Now, in the followings, we’ll introduce you a method to configure your Outlook.

![Find \& Replace Using Wildcards](https://www.datanumen.com/blogs/wp-content/uploads/2018/01/find-replace-using-wildcards.jpg "Find & Replace Using Wildcards")

## Auto Remove All Extra Spaces between Words in Email

1. First off, access VBA editor via pressing “Alt + F11” in Outlook.

**Note:** If you’re totally a new in VBA, you can refer to my previous article “ [How to Run VBA Code in Your Outlook](https://www.datanumen.com/blogs/run-vba-code-outlook/)” at the same time.

2. Then, add “MS Word Object Library” according to “ [How to Add an Object Library Reference in VBA](https://www.datanumen.com/blogs/add-object-library-reference-vba/)“.
3. Next, put the VBA code into the “ThisOutlookSession” project

```
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    Dim objMail As Outlook.MailItem
    Dim objMailDocument As Word.Document
 
    'Get current mail
    If TypeOf Item Is MailItem Then
       Set objMail = Item
       Set objMailDocument = objMail.GetInspector.WordEditor
 
       'Remove all extra spaces using wildcards
       With objMailDocument.Range.Find
            .ClearFormatting
            .Replacement.ClearFormatting
            .Text = "([ ])[ ]{1,}"
            .Replacement.Text = "\1"
            .Forward = True
            .MatchWildcards = True
            .Execute Replace:=wdReplaceAll
      End With
    End If
End Sub
```

![VBA Code- Auto Remove All Extra Spaces between Words in Email]( "VBA Code- Auto Remove All Extra Spaces between Words in Email")

4. Afterwards, exit the current window.
5. Finally, follow the steps below to have a try.

- To start with, create and compose an email. Here you can intentionally type several extra spaces between words, like the following figure.![Compose an Email with Extra Spaces between Words]( "Compose an Email with Extra Spaces between Words")
- After filling in the recipients, directly click “Send” button to send it out.
- Finally, when it’s sent, go to “Sent Items” folder to find it. You can see that all the extra spaces have been removed automatically.![All Extra Spaces between Words Have Been Removed]( "All Extra Spaces between Words Have Been Removed")

## Don’t Be Afraid of Outlook File Corruption

In the event of Outlook crash, users will get panic and fear that their Outlook files will be corrupt. In fact, as long as you make some effective precautions, you could get rid of such concerns easily. First of all, you ought to persist in regularly back up your PST files, which plays a greatly important role in data protection. Also, it is advisable to prepare a credible and potent external Outlook repair tool, such as DataNumen Outlook Repair, as inbox repair tool is admittedly unable to [fix PST](https://www.datanumen.com/outlook-repair/) that is compromised severely.

## Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including [repair mdf](https://www.datanumen.com/sql-recovery/) and outlook repair software products. For more information visit [www.datanumen.com](https://www.datanumen.com/)

Share Now:

-
-
-
-
-
-
-
-

[← Previous post](https://www.datanumen.com/blogs/solve-still-running-access-process-issue-access-closed/)

[Next post →](https://www.datanumen.com/blogs/open-received-sent-emails-edit-mode-automatically-outlook-vba/)

Comments are closed.

![Data Recovery Blog]()

Follow or like us on Facebook, LinkedIn and Twitter to get all promotions, latest news and updates on our products and company.

-
-
-

### Featured Products

- [DataNumen Outlook Repair](https://www.datanumen.com/outlook-repair/)
- [DataNumen SQL Recovery](https://www.datanumen.com/sql-recovery/)
- [DataNumen Exchange Recovery](https://www.datanumen.com/exchange-recovery/)
- [DataNumen Access Repair](https://www.datanumen.com/access-repair/)
- [DataNumen Excel Repair](https://www.datanumen.com/excel-repair/)
- [DataNumen PDF Repair](https://www.datanumen.com/pdf-repair/)
- [DataNumen Word Repair](https://www.datanumen.com/word-repair/)
- [DataNumen Zip Repair](https://www.datanumen.com/zip-repair/)

### Popular posts

```json
{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/#article","isPartOf":{"@id":"https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/"},"author":{"name":"AuthorCCW","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/person\/33ded6c47c77587f9158d99f05e23957"},"headline":"How to Auto Remove All Extra Spaces between Words in Your Outlook Email","datePublished":"2018-01-20T00:58:20+00:00","dateModified":"2025-09-29T05:57:41+00:00","mainEntityOfPage":{"@id":"https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/"},"wordCount":420,"commentCount":0,"publisher":{"@id":"https:\/\/www.datanumen.com\/blogs\/#organization"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2018\/01\/find-replace-using-wildcards.jpg","articleSection":["Outlook Solutions"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/","url":"https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/","name":"How to Auto Remove All Extra Spaces between Words in Your Outlook Email","isPartOf":{"@id":"https:\/\/www.datanumen.com\/blogs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/#primaryimage"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/#primaryimage"},"thumbnailUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2018\/01\/find-replace-using-wildcards.jpg","datePublished":"2018-01-20T00:58:20+00:00","dateModified":"2025-09-29T05:57:41+00:00","description":"If you often type extra spaces accidentally when composing Outlook email, you may wish to make Outlook auto remove all extra spaces between words. Now, this article will teach you a convenient method to realize it.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanumen.com\/blogs\/auto-remove-extra-spaces-words-outlook-email\/#primaryimage","url":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2018\/01\/find-replace-using-wildcards.jpg","contentUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2018\/01\/find-replace-using-wildcards.jpg","width":563,"height":471,"caption":"Find & Replace Using Wildcards"},{"@type":"WebSite","@id":"https:\/\/www.datanumen.com\/blogs\/#website","url":"https:\/\/www.datanumen.com\/blogs\/","name":"Data Recovery Blog","description":"Discuss every aspect of data recovery","publisher":{"@id":"https:\/\/www.datanumen.com\/blogs\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.datanumen.com\/blogs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.datanumen.com\/blogs\/#organization","name":"Data Recovery Blog","url":"https:\/\/www.datanumen.com\/blogs\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/logo\/image\/","url":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2019\/02\/logowithouttext.jpg","contentUrl":"https:\/\/www.datanumen.com\/blogs\/wp-content\/uploads\/2019\/02\/logowithouttext.jpg","width":296,"height":397,"caption":"Data Recovery Blog"},"image":{"@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/DataNumen","https:\/\/x.com\/DataNumen","http:\/\/www.linkedin.com\/company\/datanumen","https:\/\/myspace.com\/datanumen\/","http:\/\/www.pinterest.com\/datanumen\/","https:\/\/www.youtube.com\/channel\/UCVIIuuKfUBHSJauUaVP13tw"]},{"@type":"Person","@id":"https:\/\/www.datanumen.com\/blogs\/#\/schema\/person\/33ded6c47c77587f9158d99f05e23957","name":"AuthorCCW","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3516ed90fc242780d3947a989f895bc46e70c3e83485d30f2b457a007906aa58?s=96&d=mm&r=g","caption":"AuthorCCW"},"sameAs":["https:\/\/www.datanumen.com\/"]}]}
```
