how to check MS Word paragraph line spacing using vba script.
"Sub asd() Set myRange = ActiveDocument.Paragraphs(1).Range
With myRange.ParagraphFormat
.LineSpacingRule = wdLineSpaceMultiple
.LineSpacing = LinesToPoints(1.5)
End With
End Sub"
This Code only add (1.5) spacing in paragraph(1). Now i need a code that take paragraph(1) and gives me its line spacing for example in this case it gives 1.5.
"Sub asd() Set myRange = ActiveDocument.Paragraphs(1).Range
With myRange.ParagraphFormat
.LineSpacingRule = wdLineSpaceMultiple
.LineSpacing = LinesToPoints(1.5)
End With
End Sub"
This Code only add (1.5) spacing in paragraph(1). Now i need a code that take paragraph(1) and gives me its line spacing for example in this case it gives 1.5.