Application.InchesToPoints Method

Word Developer Reference

Converts a measurement from inches to points (1 inch = 72 points). Returns the converted measurement as a Single.

Syntax

expression.InchesToPoints(Inches)

expression   A variable that represents an Application object. Optional.

Parameters

Name Required/Optional Data Type Description
Inches Required Single The inch value to be converted to points.

Example

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

Visual Basic for Applications
  Selection.ParagraphFormat.SpaceBefore = InchesToPoints(0.25)

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

Visual Basic for Applications
  Dim docLoop As Document

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

See Also