Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do use paragraphFormat?

Status
Not open for further replies.

nesplb

Programmer
Jul 29, 2003
109
NO
Hi!
I want to increase the space before the current paragraph to a amount of points. That is suppose to happen when I choose a certain style.
When I use the following code it doesn't work:
Code:
Dim p As Paragraph
Set p = Selection.Paragraphs(1)
p.SpaceBefore = 60

I have also tried:
Code:
ActiveDocument.Styles("StyleName").ParagraphFormat.SpaceBefore = 30

but this doesn't work either....



does anyone have any tips?




Pål Nesteby

PDC-Tangen
Norway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top