Note that this macro (DispSetup) must be executed every time you want to display and position the two panes. Setting the position of the object to msoBarRight places it exactly where it should be docked. CommandBars('Styles') object comes into play. Turning it on, however, is only half of the task-Anthony also wanted it docked at the right side of the document. TaskPanes(wdTaskPaneFormatting) property is the one that controls whether the Styles task pane is visible or not. CommandBars('Styles').Position = msoBarRight
TaskPanes(wdTaskPaneFormatting).Visible = True Instead, you'll need to use a macro to display and position it. 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.Īs Anthony has figured out, there is no way to display the Styles task pane, by default. 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.
He's had no luck, though, figuring out a way to make sure the Styles pane remains open. Currently, the Navigation pane automatically opens and docks at the left side of the screen by default, which is great. It would be great if he could set the Styles pane to remain open and docked by default. Anthony regularly works with client's Word files that contain many styles, and each set of styles is different from client to client.