VBA & Macro Problems

How to Set Word Outline Level 1 with a Keyboard Shortcut Using VBA

Ayan MasoodAyan Masood Nov 13, 2026 869 views

Question details

The user needs to apply Outline Level 1 to Microsoft Word paragraphs without changing their Normal style, because a publishing application ignores Word heading styles but recognizes paragraph outline levels.

Product
Microsoft Word
Device & OS
not provided
Scenario
Preparing a document for publisher software that does not support Word heading styles but accepts paragraph outline levels.
Observed behavior
Word has no built-in keyboard shortcut for setting only the outline level, so the user needs a VBA macro assigned to a shortcut.
Before you start

Make sure the Developer tab is visible in Word, and choose a shortcut key combination that is not already used by another command in your document workflow.

Solution 1Recommended

Create a VBA Macro to Set Outline Level 1 and Assign a Keyboard Shortcut

Use this method when you must keep the Normal style applied and need a one-key way to mark paragraphs as Outline Level 1.

Word does not provide a built-in shortcut for changing only the paragraph outline level. A VBA macro can set the outline level directly without switching the paragraph to a heading style.

1
Open the VBA editor

In Word, open the Developer tab and click Visual Basic. If the Developer tab is not visible, enable it through File > Options > Customize Ribbon.

2
Insert the outline level macro

In the Visual Basic Editor, select Normal in the Project pane, click Insert > Module, and paste: Sub SetOutlineLevel1() Selection.ParagraphFormat.OutlineLevel = wdOutlineLevel1 End Sub

3
Save the macro in the Normal template

Click File > Save Normal or press Ctrl+S in the Visual Basic Editor so the macro is available to all documents.

4
Assign a keyboard shortcut

Go to File > Options > Customize Ribbon, click Customize next to Keyboard shortcuts. Under Categories choose Macros, select SetOutlineLevel1, click in Press new shortcut key, enter Alt+1, then click Assign and Close.

5
Apply the shortcut to a paragraph

Place the cursor in the paragraph and press the assigned shortcut. The paragraph stays in the Normal style but its outline level becomes Level 1.

Create a VBA Macro to Set Outline Level 1 and Assign a Keyboard Shortcut
Expand for other levels: Create similar macros using wdOutlineLevel2, wdOutlineLevel3, and so on, and assign each one a different shortcut.
WPS Writer

Apply Outline Level 1 in WPS Writer Without Changing the Normal Style

WPS Writer can open your Word document, set paragraph outline levels from the Paragraph dialog, and save back to DOCX. It keeps the Normal style intact and gives you a free, lightweight, familiar Office alternative.

  1. 1. Open the Word document in WPS Writer: Launch WPS Writer and open the .docx file that needs Outline Level 1 paragraphs.
  2. 2. Open Paragraph settings: Select the target paragraph. On the Home tab, click the Paragraph group launcher, or right-click the paragraph and choose Paragraph.
  3. 3. Set Outline level to Level 1: In the Paragraph dialog, on the Indents and Spacing tab, set Outline level to Level 1 and click OK. The paragraph remains in Normal style.
  4. 4. Repeat and save: Apply the same outline level to other paragraphs as needed, then save the file as a Word Document (.docx) so the publisher can read the outline levels.
Direct outline level control without replacing the Normal styleFull DOCX and Microsoft Word format compatibilityFree, lightweight Office suite with a familiar ribbonNo VBA macro required for basic paragraph outline settings
QA img-9

Frequently Asked Questions

Can I set an outline level in Word without applying a heading style?

Yes. You can set the outline level through the Paragraph dialog or with a VBA macro. Word does not have a built-in keyboard shortcut for changing only the outline level.

Where is the Outline level setting in Word?

Click the Home tab, open the Paragraph dialog launcher, go to the Indents and Spacing tab, and use the Outline level dropdown.

How do I assign a keyboard shortcut to a macro in Word?

Go to File > Options > Customize Ribbon, click Customize next to Keyboard shortcuts, select Macros, choose the macro, enter a shortcut key, and click Assign.

Will the outline level still work if the paragraph remains in the Normal style?

Yes. Outline level is a separate paragraph property. The text can stay visually in the Normal style while being recognized as an outline item by tools that read paragraph outline levels.

Can I use WPS Writer to set outline levels without using Word VBA?

Yes. In WPS Writer, open the Paragraph dialog from the Home tab, set Outline level to Level 1, and save the document as a Word .docx file.