InchesToPoints Method Example

This example sets the space before for the selected paragraphs to 0.25 inch.

Selection.ParagraphFormat.SpaceBefore = InchesToPoints(0.25)

This example prints each open document after setting the left and right margins to 0.65 inch.

For Each openDoc in Documents
    With openDoc
        .PageSetup.LeftMargin = InchesToPoints(0.65)
        .PageSetup.RightMargin = InchesToPoints(0.65)
        .PrintOut
    End With
Next openDoc