how to check MS Word paragraph line spacing using vba script

Discussion in 'Word' started by umair, Sep 12, 2018.

  1. umair

    umair

    Joined:
    Sep 12, 2018
    Messages:
    1
    Likes Received:
    0
    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.
     
    umair, Sep 12, 2018
    #1
    1. Advertisements

  2. umair

    macropod Microsoft MVP

    Joined:
    Mar 2, 2012
    Messages:
    385
    Likes Received:
    34
    macropod, Sep 12, 2018
    #2
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.