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!"
 
Top