Reputation: 1
how to check MS Word paragraph line spacing using vba script. here is code where line spacing are change in paragraph(1). we add paragraph(1) line space 2. now how can we get it if we give same paragraph(1) and its gives us 2.
Upvotes: -1
Views: 2549
Reputation: 25
To check line spacing: Selection.ParagraphFormat.LineSpacing
Te increase line spacing Selection.ParagraphFormat.LineSpacing = .LineSpacing + 1
Te decrease line spacing Selection.ParagraphFormat.LineSpacing = .LineSpacing - 1
thanks.
Upvotes: 0
Reputation: 4355
Record a macro where you change the line setting and then look at the result you get.
If there is any keyword you don't understand put the cursor on it and press F1, this will bring up the MS Help page for that keyword.
To record a macro you need to have the Developer Tab enabled.
Upvotes: -1