There are times when Larry absolutely needs to create four or more new blank documents. He wonders if there is a way to create four new blank documents (it would be nice to input how many blank documents needed) at once.
There are a few ways you can approach this problem. If all you want to do is create four new documents, all based on the Normal template, the easiest way is to simply press Ctrl+N four times. (Actually, you can hold down the Ctrl key and press N four times.) The result is four blank documents, ready to be used.
If your documents need to be based on a different template than the Normal template, then it is best to use a macro. The following macro prompts the user for how many documents should be created, and then creates them based on the BusinessReport template.
Sub NewDocuments() Dim Answer As Variant Dim iNewDocs As Integer Dim J As Integer Answer = InputBox("How many new documents?") iNewDocs = CInt(Answer) For J = 1 to iNewDocs Documents.Add Template:="BusinessReport", NewTemplate:=False, _ DocumentType:=wdNewBlankDocument Next J End Sub
The macro could be assigned to a shortcut key or to a button on a toolbar, ready to create your documents. You could also take a slightly different approach with the same code. Create a new document based on the desired template (such as the BusinessReport template), and then add this macro to the template:
Sub AutoOpen() Dim Answer As Variant Dim iNewDocs As Integer Dim J As Integer Answer = InputBox("How many more docs?", "Doc Count") iNewDocs = CInt(Answer) For J = 1 To iNewDocs Documents.Add Template:="BusinessReport", NewTemplate:=False, _ DocumentType:=wdNewBlankDocument Next End Sub
Save the document under a name such as "MultipleDocs.docm." The basis of the macro is the same as the previous one. The difference is the name given to the macro. Since it uses the special AutoOpen name, then whenever the MultipleDocs document is subsequently opened, the macro is automatically run and the user is asked how many additional documents to create.
Note:
WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (11237) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, and Word in Office 365. You can find a version of this tip for the older menu interface of Word here: Creating Multiple Blank Documents in One Step.
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!
Have you ever wanted to have a Word document be accessible through two different folders? Here are several ways you can ...
Discover MoreBreaking document links can be a tedious chore, especially if there are lots of links and lots of documents. This tip ...
Discover MoreWant to collaborate with others on creating your literary masterpiece? It may be easier than you think, depending on the ...
Discover MoreFREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
2018-05-22 07:06:24
AnonC
Ctrl+N opens up a new file for me... How do I change it to Word Doc?
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.
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
Copyright © 2021 Sharon Parq Associates, Inc.
Comments