space between paragraphs

P

Piotr Nadolny

1) The following line sets the line spacing rule for the specified
paragraph:
ole_1.object.selection.paragraphformat.linespacingrule = wdLineSpaceDouble;
That works fine but I'd like to set the space between each paragraphs in the
document not for the concrete paragraph. What should I use ?

2) ole_1.object.selection.typeparagraph types new paragraph in the
selection. Is it good idea to use ole_1.object.selection.typetext(char(11))
to enter new line (not paragraph)? This question is related to the first one
because I'd like to obtain a double line space when I type a new paragraph
and a single line space when I enter a new line in the range of a concrete
paragraph.
 
H

Helmut Weber

Hi Piotr,
strictly speaking, there is no space _between_
paragraphs. Only space after or space before
or both. One very simple example:
Selection.WholeStory
Selection.ParagraphFormat.SpaceAfter = 12 ' points
Still better would it be, to modify the style
the paragraphs in question are based on.
Or do you really want to have the same space
after for all paragraphs?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top