Application.MillimetersToPoints Method

Word Developer Reference

Converts a measurement from millimeters to points (1 mm = 2.85 points). Returns the converted measurement as a Single.

Syntax

expression.MillimetersToPoints(Millimeters)

expression   A variable that represents an Application object. Optional.

Parameters

Name Required/Optional Data Type Description
Millimeters Required Single The millimeter value to be converted to points.

Return Value
Single

Example

This example sets the hyphenation zone in the active document to 8.8 millimeters.

Visual Basic for Applications
  ActiveDocument.HyphenationZone = MillimetersToPoints(8.8)

This example expands the spacing of the selected characters to 2.8 points.

Visual Basic for Applications
  Selection.Font.Spacing = MillimetersToPoints(1)

See Also