Altering the visibility of styles

K

Kenton

What VB code is needed to view only specific predetermined styles within the
Styles drop down box on the toolbar as well as on the 2003 task pane?
 
J

Jean-Guy Marcil

Kenton said:
What VB code is needed to view only specific predetermined styles within the
Styles drop down box on the toolbar as well as on the 2003 task pane?

Something like this should work:

ActiveDocument.Styles("Body Text").Visibility = False

But, somebody must have been dozing off at MSFT the day they implemented this.
True means, "Yes, it will not be visible!"
So, if you want to display a style, use False, as in "No, it will not be
invisible!"
 

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