Styles Command Bar - make visible as default?

X

xtine

Hi

How do I put code into a template (either an individual one, or a
global one) that will switch on the Styles command bar as default.

I tried

CommandBars("Styles").Visible = True

but this errors saying

"method 'Visible' of object 'CommandBar' failed


Christine
 
J

Jean-Guy Marcil

xtine said:
Hi

How do I put code into a template (either an individual one, or a
global one) that will switch on the Styles command bar as default.

I tried

CommandBars("Styles").Visible = True

but this errors saying

"method 'Visible' of object 'CommandBar' failed

What is the "Styles" command bar?
As far as I know, there is no such thing as a "Styles" command bar.
In older versions, you had to go through the Style Dialog, or use the the
"Formatting" command bar, which is usually displayed by default anyway.

In later versions, you can display the Styles and Formatting task pane as
follows:

Application.TaskPanes.Item(wdTaskPaneFormatting).Visible = True
 
X

xtine

Thanks - this works great

Is there a way to dock the TaskPane so that it is not floating?


Christine
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top