Please Note: This article is written for users of the following Microsoft Word versions: 2007, 2010, and 2013. 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: Inserting a Paragraph from within a Macro.

Inserting a Paragraph from within a Macro

by Allen Wyatt
(last updated April 10, 2018)


It is not unusual to use macros to insert new text within a document. One of the common pieces of text you may want to enter is a paragraph mark—the same as when you press Enter within a document. You can do this by using the following code within your VBA macro:


The TypeParagraph method is always used with the Selection object. As was mentioned, using TypeParagraph is the equivalent to pressing Enter in your document. This means that if anything was selected when the command is executed, the selection is replaced by the blank paragraph that the macro inserts.


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 (10052) applies to Microsoft Word 2007, 2010, and 2013. You can find a version of this tip for the older menu interface of Word here: Inserting a Paragraph from within a Macro.

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


Deriving Monthly Median Values

When processing huge amounts of data, it can be a challenge to figure out how to derive the aggregate values you need. ...

Discover More

Anchoring Objects by Default

When you position objects (such as text boxes or graphics) on a page, one of the things you can do is to anchor the ...

Discover More

Making Fast Work of Uploading Files to Drive

What's the fastest way to get files into your Drive space? Why, dragging and dropping, of course! You'll find the ...

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)

Bypassing the Startup Macro

Word allows you to create a macro that is run automatically whenever the program is started. If you want to bypass the ...

Discover More

Creating a String

Need to use a macro to create a text string? One easy way to do it is to use the String function, described in this tip.

Discover More

Reversing a String

Need to reverse all the characters in a string? You can do so by using the function described in this tip.

Discover More

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

View most recent newsletter.


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}] 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 one minus 1?

2018-04-10 11:01:27



I hear your frustration, however, this is a general Tips site, not specifically a full-blown tutorial site. I have found that writing code to solve a specific problem or need is a great way to learn. Over time skills and insights build. Allen's site is just one of the ways I get informed about ways to solve VBA coding problems. I would recommend taking a basic course in VBA. It will help the "bits and pieces", such as these Tips, fall into place.

2018-04-10 07:42:11



There are MANY places on this site where I provide tips that use macros. I cannot, in each of those tips, explain HOW to use macros. If I did, it would be quite redundant and would make tips (such as the one above) much less useful for those who already know how to use macros.

That being said, there are a good number of resources I provide that give information on how to use macros. Let's start with what is the most obvious--the FAQ. At the right side of any page on this site (including this page) there is a link that says "WordTips FAQ." If you click that, there is a question there entitled "How Can I Use the Macros In WordTips?" The answer provides some direction, including a link to a tip about how to create macros from scratch.

Second, I provide two different e-books that are helpful in how to use the macros. You can find those here:

Those e-books are available, again, by exploring the "Helpful E-books" link at the bottom of any page.

Third, there is a search box at the upper-right of any page on the site. If you type in the word "macro" you'll get TONS of tips related to macros. You can even, if you desire, look at the Macros category, which is here:

Fourth, if you are so inclined, I offer an online course about how to create macros. I don't accept new students all the time; usually about 3 times a year. You can find additional information here:

I hope you find this mix of free and non-free resources helpful.


2018-04-10 03:43:24


You consistently give tips with using Macros but you NEVER show us how to run these macros. This is the last and final time I ask you to do this. I have previously asked you to do this on no fewer than 4 occasions without any response from you. Surely this is not too much to ask!

2014-08-30 05:50:27


I don't understand any of this - could we have some background explanation please? It supposes we all know all about macros, how to make them and how to use them

Thank you!

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.

Newest Tips

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.