Problem with paragraph spacing in Word table styles

Anonymous
2016-05-03T14:14:16+00:00

I am having trouble with paragraph spacing for a table style (right click the table style, e.g. ‘table grid’ on the design tab of table tools -> modify table style -> button ‘format’ -> paragraph). With a clean normal.dotm (if you remove normal.dotm, Word will create a standard clean version on starting Word), the spacing before and after is 0 pt. The paragraph spacing of the Normal text style (on the home tab) for a clean normal.dotm is 0 pt before and 8 pt after. So, the paragraph spacing for a table is according to the spacing settings of its table style. If you change the spacing of the table style to, e.g. 12 pt before and 12 pt after, it will indeed affect the table (you will see the table change). I would like my tables to have no spacing, so I change it back to 0 pt before and after.

I do want to change the spacing of the Normal text style. As soon as I change this from 0 pt before and 8 pt after to 6 pt before and 6 pt after, it immediately also affects the spacing of the table style (you will see the table change). If you go back to the spacing settings of the table style, you will see it is still set to 0 pt before and after. Worse, whatever pt value you enter for before and after, it does not affect the table anymore.

This drives me mad. It seems that as soon as you change the paragraph spacing of Normal text style, the paragraph spacing of a table is ignored. I found no way to create tables with 0 pt paragraph spacing after modifying the standard paragraph spacing of the Normal text style from 0 pt before and 8 pt after to some other value.

I have this problem in the Office 365 versions of Word 2013 and Word 2016 (I did not test it in Word 2010). It seems to me this is a nasty bug or am I doing something wrong? Does anybody know a work around for this, so I can create table styles with 0 pt paragraph spacing, when using an updated normal text style? I can select the entire table, select the home tab, click the little arrow in the paragraph group and set the spacing before and after to 0 pt, but this way the spacing is not applied by the style. This is really not the way it should work; spacing should be correct directly after choosing the concerning paragraph style, just like the way it works when you change the table style paragraph spacing with the standard Normal text style spacing of 0 pt before and 8 pt after.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Stefan Blom 324.9K Reputation points MVP Volunteer Moderator
    2016-05-03T18:18:47+00:00

    Indeed, as Suzanne wrote, the key to getting paragraph formatting to work for a table style is to make sure that the Normal style has the same settings as the document defaults.

    Of course, the connection between the document defaults and the Normal style is far from obvious, but you can easily test it and convince yourself.

    You'll find the document defaults on the Set Defaults tab of the Manage Styles dialog box (press Ctrl+Alt+Shift+S to display the Styles pane and click the Manage Styles icon, and Word displays the Manage Styles dialog box).

    To display the Modify Style dialog box, press Ctrl+Shift+S; in the Apply Styles pane, type in Normal and click Modify.

    4 people found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Suzanne S Barnhill 275K Reputation points MVP Volunteer Moderator
    2016-05-03T16:18:54+00:00

    When you changed the spacing of the Normal style, did you also change the document defaults? I believe these have to be in sync in order not to affect table styles. See http://windowssecrets.com/forums/showthread.php/145057-Style-behaviour-within-a-Table-(Word-2010) for more on this.

    The Microsoft blog links in that thread are no longer valid, but you can find the referenced pages here:

    Behind the Curtain: Styles’ Order of Operations

    Behind the Curtain: Styles, Doc Defaults, Style Sets, and Themes

    2 people found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Stefan Blom 324.9K Reputation points MVP Volunteer Moderator
    2016-05-06T20:06:02+00:00

    In my experience, the default setting for Spacing Before and After is never 6 points for the table styles, but it doesn't matter, as you can fix the styles quickly by running this macro:

    Sub FixTableStylesInDoc()

    On Error GoTo errhandler

    Dim t As Style

    For Each t In ActiveDocument.Styles

    If t.Type = wdStyleTypeTable Then

    t.ParagraphFormat.SpaceBefore = 0

    t.ParagraphFormat.SpaceAfter = 0

    t.Table.Condition(wdFirstRow).ParagraphFormat _

    .SpaceBefore = 0

    t.Table.Condition(wdFirstRow).ParagraphFormat _

    .SpaceAfter = 0

    t.Table.Condition(wdLastRow).ParagraphFormat _

    .SpaceBefore = 0

    t.Table.Condition(wdLastRow).ParagraphFormat _

    .SpaceAfter = 0

    End If

    errhandler:

    Next t

    End Sub

    For installation instructions, see http://www.gmayor.com/installing_macro.htm.

    0 comments No comments