Formatting Issues

Create Numbered Lists with Blank Lines Using VB.NET in Word

Natalie TaylorNatalie Taylor Nov 4, 2026 870 views

Question details

The user wants to know how to use VB.NET automation to create a numbered list in a Word document that includes one or two blank lines between the list items.

Create Numbered Lists with Blank Lines Using VB.NET in Word
Product
Microsoft Word
Device & OS
not provided
Scenario
Automating document creation and formatting using VB.NET without manually inserting empty lines.
Observed behavior
Generating a numbered list where items are cleanly separated by blank space formatting rather than empty paragraph markers.
Before you start

Ensure you have a basic understanding of VB.NET programming and that the Microsoft Word Object Library reference is successfully added to your project.

Solution 1Recommended

Apply Paragraph Spacing and Styles via a Word Template

The most reliable method is to create a template with predefined styles for spacing, rather than manually inserting empty paragraphs via code.

Inserting empty paragraphs into a numbered list using code can break the numbering sequence or lead to inconsistent formatting. Instead, use Word's built-in paragraph formatting features like 'Space After' and 'Space Before'.

1
Create a Word Template

Open your word processor, create a new document, and define a new Paragraph Style. Set the 'Space After' property to 12pt (for one blank line) or 24pt (for two blank lines).

2
Configure Numbering

Link your newly created style to a numbered list format so that every time the style is applied, the numbering continues automatically without manual intervention.

3
Save the Template

Save this document as a Word Template (.dotx) and store it in an accessible directory for your VB.NET application to call upon.

4
Apply Styles via VB.NET

In your VB.NET code, create a new document based on the template. Use the Selection.Style property to apply the predefined numbered list style to your text items.

Best Practice: Using a template reduces the amount of code needed and ensures more consistent results compared to repeatedly calling outdent and insert paragraph methods.
Free Microsoft Office alternative

Edit and Format Word Documents Easily with WPS Office

If you frequently work with formatted Word documents, WPS Office offers a free, lightweight, and highly compatible alternative. You can easily manage paragraph styles, line spacing, and numbered lists without complex coding.

Free and lightweight Office suiteSeamlessly compatible with Microsoft Word formats (.docx, .dotx)User-friendly interface for managing paragraph styles and list spacingFamiliar UI with zero learning curve for rapid document editing
microsoft office alternative - wps office

Frequently Asked Questions

Why shouldn't I just insert empty paragraphs using VB.NET?

Inserting empty paragraphs using methods like InsertParagraphAfter can break the numbering sequence, cause unpredictable formatting behavior, and make the document much harder to maintain or reformat later.

How many points equal a blank line in Word documents?

Typically, a single standard blank line is equivalent to 12 points of spacing. To add two blank lines, set the SpaceAfter property to 24 points.

Can I define the spacing before the paragraph instead of after?

Yes, you can use the SpaceBefore property in your paragraph style. However, using SpaceAfter is generally preferred for lists to maintain consistent separation between sequential items.

Do these VB.NET styling methods work for bulleted lists as well?

Absolutely. The same principles of applying predefined styles and adjusting SpaceAfter or SpaceBefore work seamlessly for both bulleted and numbered lists.