Closing a Document and Creating a New One

Written by Allen Wyatt (last updated January 28, 2023)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, 2021, and Word in Microsoft 365


1

When Glenn is done working with a document in Word, he often wants to close it and open a brand-new blank document. These are obviously two separate steps (close the open document and then create a new document). Since Glenn does this so often, he's wondering if there is a way that he can combine the two steps into a single step.

An easy way to do this is to simply use keyboard shortcuts. To close the current document and then create a blank document, first press Ctrl+W followed by Ctrl+N. This can still be considered two steps, however. And, if you need to save the document first (by pressing Ctrl+S), then it is three steps.

If you truly want it to be a single step, then the best solution is to create a macro to do the tasks. Here's a simple example:

Sub MyCloseCreate()
    ActiveWindow.Close SaveChanges:=False
    Documents.Add DocumentType:=wdNewBlankDocument
End Sub

The first line in the document closes whatever document is active, and then the second creates the brand-new document. Note the use of the SaveChanges parameter on the first line. This causes Word to close the document without saving any changes; if you want to save your changes by default, change the "False" to "True."

You should save the macro in your Normal template and then you can assign it to a shortcut key or add it to your Quick Access Toolbar. That way you can perform both steps with a single action.

Note:

If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (13006) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, 2021, and Word in Microsoft 365.

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

Reloading Building Blocks

Building Blocks can be a powerful tool for document creation in Word. Saving your Building Blocks and reloading them into ...

Discover More

Program Opens without the Desired Document

Double-click a document link in the recent documents list maintained by Windows, and you may be surprised if Word doesn't ...

Discover More

Diagonal Borders in a Conditional Format

Conditional formatting is a great tool for changing how your data looks based on the data itself. Excel won't allow you ...

Discover More

Learning Made Easy! Quickly teach yourself how to format, publish, and share your content using Word 2013. With Step by Step, you set the pace, building and practicing the skills you need, just when you need them! Check out Microsoft Word 2013 Step by Step today!

More WordTips (ribbon)

Document is Too Large for Word to Handle

Imagine trying to open a familiar document one day, only to find that Word gives you an error message that the file is ...

Discover More

Saving Personalized Copies of a Document

Need a series of documents that include an individual's name or a company name? Here's a handy little macro that will ...

Discover More

Breaking Links in Lots of Documents

Breaking document links can be a tedious chore, especially if there are lots of links and lots of documents. This tip ...

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

2023-01-28 05:10:48

KENT HANSEN

A special case that I have is closing a document and reopening the SAME document 4 times a day. (Document has a number of links that may opened and then processed via another macro).
Lots of code choices on the internet. I use the one below. (One QAT click vs File|Close|Don'tSave|File|Open|Select)

Sub Reopen()
'UpdatebyExtendoffice20171128
ThisWorkbook.Saved = True
ThisWorkbook.ChangeFileAccess xlReadOnly, , False
Application.Wait Now + TimeValue("00:00:01")
ThisWorkbook.ChangeFileAccess xlReadWrite, , True
End Sub


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.