![]() |
|
|
|
#1
|
||||
|
||||
|
OK, I tried
- Code:
Sub LineSpacing6pt()
Dim opara As Paragraph
Dim i As Long
For i = 1 To Selection.Range.Paragraphs.Count
Set opara = Selection.Range.Paragraphs(i)
opara.Range.Style.NoSpaceBetweenParagraphsOfSameStyle = False
opara.Range.ParagraphFormat.SpaceAfter = 6
Next i
lbl_Exit:
Exit Sub
End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
|
#2
|
|||
|
|||
|
Appreciate it. I will look at your code. I tested out some other ideas as well, so I think I have enough info to call this one resolved.
I think in my first example, I probably was toggling the nospacebetweenparagraphsofsamestyles attribute, but was applying the paragraph spacing I wanted to the paragraph rather than the style and one was over-riding the other...or something like that. I got it working in a test doc this morning. First crack at VBA in Word... Thanks. |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Style affecting other paragraphs around the word I'm trying to change.
|
Bahamut5098 | Word | 2 | 03-02-2015 01:42 PM |
| Delete lots of empty space between paragraphs. | FieldTechnician | Word | 4 | 10-25-2013 01:14 PM |
| Don't add space between para of the same style | ghumdinger | Word | 3 | 09-19-2011 02:04 AM |
| Don't Add Space between paragraphs option | Emerogork | Outlook | 12 | 07-18-2011 10:01 AM |
| Space between paragraphs... | Emerogork | Outlook | 2 | 06-24-2011 10:23 AM |