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

Adding a ScreenTip

Need to add a ScreenTip to your document? It's easy to do, provided you are adding a hyperlink.

Discover More

Adding Graphics to a Header or Footer

Excel makes it easy to add graphics to a header or footer, as long as you are using at least Excel 2002. Here's the steps ...

Discover More

Merging and Printing

When you merge information into a document, Word provides two different ways you can create your output. Here's an ...

Discover More

Comprehensive VBA Guide Visual Basic for Applications (VBA) is the language used for writing macros in all Office programs. This complete guide shows both professionals and novices how to master VBA in order to customize the entire Office suite for their needs. Check out Mastering VBA for Office 2010 today!

More WordTips (ribbon)

Can't Select Style Instances

Using the Styles and Formatting task pane, Word allows you to select all instances of a given style in your document. ...

Discover More

Deleting Styles

As documents evolve, so do your needs for various styles. You may create new ones and, invariably, old ones need to be ...

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
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 2 + 8?

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.