Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. If you are using an earlier version (Word 2003 or earlier), this tip may not work for you. For a version of this tip written specifically for earlier versions of Word, click here: Leading Spaces in Document File Names.

Leading Spaces in Document File Names

Written by Allen Wyatt (last updated June 24, 2022)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365


1

Jo Ann would like to save Word documents using a space at the beginning of the file name. The leading space causes the file to be listed at the beginning of the Open dialog box, which Jo Ann finds helpful. However, she can't figure out how to get Word to pay attention to the desired space, as it is always automatically removed when she saves the file.

There are a couple of ways you can add the desired space. One is to rename the files using the command line in Windows. After you get out of Word, open a command line window, navigate to the folder where the file is saved, and then use a command such as the following:

ren MyFile.docx " MyFile.docx"

Note the use of the quote marks and the space after the first quote mark. The result is a leading space in your renamed file. The space appears in front of the file name even when you next start Word.

It is the quote marks that make the operating system pay attention to the space. In fact, this leads right into the next approach, which can be used from within Word: add quote marks to your file names. When you use Save As to save your file, surround the file name (including any leading spaces) with quote marks. Word then dutifully includes the spaces with the file name, rendering the desired result.

If, for some reason, you don't want to use quote marks in your file names, you can simply use a different character then a space to preface the names of files you want sorted at the beginning of your file list. Good candidates are underscores, tildes, and exclamation points.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (11742) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Microsoft 365. You can find a version of this tip for the older menu interface of Word here: Leading Spaces in Document File Names.

Author Bio

Allen Wyatt

With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

MORE FROM ALLEN

Specifying an Index Page-Range Separator

When generating an index, Word normally uses a dash to indicate page ranges. You can change the character used for these ...

Discover More

Linking Comments to Multiple Cells

In Excel, single comments are associated with single cells. If you want to have a comment be linked to multiple cells, ...

Discover More

Odd Sorting

Word is great at sorting simple information in tables and paragraphs. If you have more complex information (such as ...

Discover More

Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!

More WordTips (ribbon)

Importing a Text File and Inserting after a Bookmark

Word macros are a great way to automate some of the ways in which you create documents. If you have a need to insert the ...

Discover More

Opening a Backup File

If you have Word configured to save backup copies of your document, you may want to actually load one of those copies at ...

Discover More

Losing Information in a Network Document

Saving documents on a network drive can be convenient. It can also be frustrating if it seems like your changes aren't ...

Discover More
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

View most recent newsletter.

Comments

If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] (all 7 characters, in the sequence shown) in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

What is 1 + 1?

2018-05-19 23:53:14

Wayne Jordan

Re: Beginning file names with exclamation points. I've used this for many years to sort files to the top, but recently I found that files named this way are overlooked by many search "engines" including windows search. I'm still in process of replacing hundreds of exclamation points with plus signs.


This Site

Got a version of Word that uses the ribbon interface (Word 2007 or later)? This site is for you! If you use an earlier version of Word, visit our WordTips site focusing on the menu interface.

Videos
Subscribe

FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

(Your e-mail address is not shared with anyone, ever.)

View the most recent newsletter.