Keeping the Styles Pane Open by Default

Written by Allen Wyatt (last updated February 15, 2025)
This tip applies to Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, and Word in Microsoft 365


Anthony regularly works with client's Word files that contain many styles, and each set of styles is different from client to client. It would be great if he could set the Styles pane to remain open and docked by default. Currently, the Navigation pane automatically opens and docks at the left side of the screen by default, which is great. He's had no luck, though, figuring out a way to make sure the Styles pane remains open. Whenever he starts Word or opens a document, the Navigation pane remains where he wants it, but the Styles pane needs to be manually displayed. Anthony wonders if there is any way to have both of these panes open, docked, and available by default each time a document is opened.

As Anthony has figured out, there is no way to display the Styles task pane, by default. Instead, you'll need to use a macro to display and position it. This macro will do the trick:

Sub DispSetup()
    With Application
        .TaskPanes(wdTaskPaneFormatting).Visible = True
        .CommandBars("Styles").Position = msoBarRight
    End With
    ActiveWindow.DocumentMap = True
End Sub

The .TaskPanes(wdTaskPaneFormatting) property is the one that controls whether the Styles task pane is visible or not. Turning it on, however, is only half of the task—Anthony also wanted it docked at the right side of the document. This is where the .CommandBars("Styles") object comes into play. Setting the position of the object to msoBarRight places it exactly where it should be docked.

Note that this macro (DispSetup) must be executed every time you want to display and position the two panes. You could, if desired, change the macro to have the name AutoOpen, and then it would be run every time you start Word. You could also add more commands to the macro to have it adjust other display features, such as what zoom factor you commonly use. (I have a high-resolution monitor, so I normally set my zoom to somewhere between 150% and 200%.)

If you cannot get this macro to work for some reason, there are two things to check. First, if you are running Word on a Mac, it won't work—VBA on the Mac doesn't support displaying the Styles task pane. (Try recording a macro to display the Styles task pane—Word on the Mac won't record anything!)

The other potential reason that it may not run is if you don't have the Microsoft Office Object Library enabled in your system. You can do this in the VBA Editor, clicking the Tools option on the menu bar and then choosing References. You can then choose through the using the options on the References menu option. Look through the available references until you find the Microsoft Office 16 Object Library. Select it, close the dialog box, and you should be good to go.

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 (5944) applies to Microsoft Word 2007, 2010, 2013, 2016, 2019, 2021, 2024, 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

Options in Creating New Files

You'd think that Word would be consistent, right? Wrong! Here's one example where Word is anything but consistent when it ...

Discover More

Converting Between Buddhist and Gregorian Calendar Systems

Converting from one calendar system to another can be a challenge. The key is identifying the differences between the ...

Discover More

Tracing Precedents and Dependents Clears Undo Stack

Excel normally allows you to undo actions you take so that you can "step back" through what you may have been doing. ...

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)

Moving All Headings Down One Level

Do you want to demote all the headings in your document by one level? There are some great tools built into the program ...

Discover More

Stopping Styles from Changing with Multiple Users

Using styles in your documents can be very helpful when it comes to consistency and ease of formatting. When others open ...

Discover More

Searching for Text Not Using a Certain Style

Word is very flexible in what it allows you to search for. One thing it can't do, however, is allow you to search for ...

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?

There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


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.