How to detect frames in paragraph styles
In the user interface, it is obvious if a paragraph style has a frame. The frame is visible: when you click in a paragraph of that style, you can see the frame boundaries. The frame is functional:...
View ArticleHow to hide table styles on the Table Tools Design tab in Word (for developers)
The problem: does anyone need 99 ways to format a table? In Word 2007 and Word 2010, when you click within a table, two Table Tools contextual tabs become available on the Ribbon. The Design tab...
View ArticleReading Conditions of a Word table style (for developers)
The problem A Table style in Word has a .Table.Condition method that returns a ConditionalStyle object. The ConditionalStyle objects refer to different elements of the table: top row, left column,...
View ArticleError 5848 “The style definition is empty”, or, why are there two Normal...
What causes this error? I can't find any reference from Microsoft to the cause of error 5848 "The style definition is empty.". But I can identify at least one way in which this error occurs. This only...
View ArticleBorders in table styles
Microsoft introduced table styles in Word 2002. There are 7 different objects that manage borders in a table style. My experience is that some of them work and some don't. This page describes my...
View ArticleBackground and foreground: Shading in paragraph styles
To set background and foreground colours, do these steps in order: Set the .BackgroundPatternColor. Set the .Texture. If you don't want a visible texture, set texture to wdTextureNone. Set the...
View ArticleShading (ie background colour) in table styles
Shading in table styles: what works? To apply background shading in table styles, apply the shading to a table style's .Table.Condition. No other shading works reliably. This page is for developers....
View ArticleWord reports the .BaseStyle of styles inaccurately
The problem Word styles cascade. Out of the box, a few styles have no parent, but most are based on another style. In the object model, this is controlled through the .BaseStyle property. One of the...
View Article4 ways to control page breaks within tables and table styles (for developers)
Controlling page breaks in tables and table styles Style.Table _ .AllowBreakAcrossPage controls page breaks within all rows. Table.Rows(n) _ .AllowBreakAcrossPages controls page breaks within one or...
View ArticleHow to create numbered headings or outline numbering in Word 2007 and Word 2010
How you set up numbered headings depends on what version of Word you have. This page is about setting up numbered headings in Word 2007 and Word 2010. If you have Word 2003 or an earlier version, see...
View Article
More Pages to Explore .....