View Single Post
 
Old 09-18-2011, 06:41 AM
ghumdinger ghumdinger is offline Windows 7 Office 2010 (Version 14.0)
Advanced Beginner
 
Join Date: Jul 2010
Posts: 64
ghumdinger is on a distinguished road
Default Don't add space between para of the same style

For some reason, Word shows a different behavior when I run a macro and when I execute the steps in the macro manually.

When I select everything (CTRL + A) in my document and uncheck "don't add space between paragraphs of the same style", it works for all paras.

I have captured that in a macro:

Selection.WholeStory
With Selection.ParagraphFormat
.SpaceBefore = 11
.SpaceBeforeAuto = False
.SpaceAfter = 11
.SpaceAfterAuto = False
.LineSpacingRule = wdLineSpace1pt5
.LineUnitBefore = 0
.LineUnitAfter = 0
.WordWrap = True
End With
End Sub


When I run the macro, it does NOT work for all paragraphs. It appears that paragraphs with the style "List paragraph", with multilevel bullets, are not affected by the macro instruction.

But if I replicate the macro steps personally, all the paras are affected. There is no section break in the document.

Any idea what's going on?

Thanks,
Jay
Reply With Quote