Remove setting from style to inherit setting from base style

10

1

In my Microsoft Word 2010 document I have two paragraph styles: Normal and Subject. Subject has "Style based on" set to Normal (inherits from Normal). In Normal, I have configured a 12pt gap after each paragraph and Subject inherited this rule just fine.

Then I accidentally added a space-after-paragraph rule to Subject, too. This means that Subject no longer "inherits" its space-after-paragraph setting from Normal, meaning that if I change the setting on Normal, I will have to change it on Subject as well.

I'd like to remove the space-after-paragraph setting from Subject so that it once again inherits that value from Normal. Is this possible? If so, how?

I tried deleting the value (12pt), hitting OK, Enter but the setting just reverts to 12pt (overriding the value set in Normal). Short of re-creating the Subject style from scratch I don't know how to solve this.

Thanks

SealedSun

Posted 2012-12-02T13:19:09.913

Reputation: 1 999

Would setting space-after to "Auto" in your Subject style work? – Adam – 2012-12-03T10:06:09.540

@Adam no, setting it to "Auto" did not work (tried it). I believe "Auto" means "use font size/line height as space-after". – SealedSun – 2012-12-03T11:58:04.963

Answers

8

Turns out there is already an article about this very topic (down to the space-after property being used as an example) available on the word.mvps.org website.

The general idea is you need to use a VBA macro once to clear the formatting. Microsoft Word would benefit from such feature included in the GUI.

Dim oStyle As Style
Set oStyle = ActiveDocument.Styles("Subject")
oStyle.ParagraphFormat.SpaceAfter = oStyle.BaseStyle.ParagraphFormat.SpaceAfter

Adam

Posted 2012-12-02T13:19:09.913

Reputation: 6 454

22.5 yrs later, is this still the best option? – dualed – 2015-03-18T15:08:59.920

@dualed, Yes, I would say so. – Adam – 2015-03-19T14:35:01.093

24 years and an entire new version of Office later, is this still the only option? – wersimmon – 2017-01-06T17:59:52.803

@harbichidian, I would assume so although I don't have a new version of Office to test with, I doubt this bug would have been fixed. – Adam – 2017-01-19T23:22:43.280

Interesting, will try this when I get home, thanks :) – SealedSun – 2012-12-05T06:04:09.277

1Seems to work, but that's not really a solution that people can use every day. That's naturally not your fault, so I'll accept your answer nonetheless. – SealedSun – 2012-12-10T22:09:19.997

Thanks. You can add the macro to GUI by adding it to the quick access toolbar. See this link for further details: http://gregmaxey.mvps.org/word_tip_pages/add_macro_to_qat.html This is the best you will get :)

– Adam – 2012-12-10T22:32:25.283

Hm… right, and then I just have to write a GUI that takes a style and setting name and… Maybe next year XD – SealedSun – 2012-12-10T22:43:55.573

0

To avoid using VBScript, you can do it by creating a "fully empty style", and then inherit and modify the desired properties:

  1. Show the Home tab of the ribbon
  2. Display the styles panel, using the arrow on the bottom right of the styles toolbar
  3. Select a paragraph of the style you want to modify, and click "Clear All" from the styles panel
  4. Keep the paragraph selected, and right click on the style name on the panel an choose "modity style to match the selection" (perhaps there's a different wording. I'm using Word in another language )
  5. Right click and choose modifcy the style, to set the parent style to inherit from, and modify desired properties.

JotaBe

Posted 2012-12-02T13:19:09.913

Reputation: 111

0

This is an old question, but still valid, and the answers given so far are not very practical. A simple way to cancel a definition, that deviates from the "Style based on", is to define the property to be the same as in "Style based on". This will remove the definition completely, because it is then useless.

As an example (and a specific answer to the original question), if your style is based on Normal, check what is the Spacing-After value in Normal style. Then change (Styles->[your style]->Modify->Format->Paragraph) the Spacing-After value in your style to be the same as in Normal style. (As default, at least in Word 2019 this value seems to be 8 pt, so you have to write the number 8 instead of clicking down-up, that goes in steps of 6 pt). After that, the style specific Spacing-After definition disappears.

Malakias

Posted 2012-12-02T13:19:09.913

Reputation: 11