PointsToMillimeters Method

Applies To

Application object, Global object.

Description

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

Syntax

expression.PointsToMillimeters(Points)

expression   An expression that returns an Application object.

Points   Required Single. The measurement, in points.

See Also

MillimetersToPoints method, PointsToCentimeters method, PointsToInches method, PointsToLines method, PointsToPicas method.

Example

This example converts 72 points to the corresponding number of millimeters.

MsgBox PointsToMillimeters(72) & " millimeters"
This example converts the value of the variable data (a measurement in points) to centimeters, inches, lines, millimeters, or picas, depending on the value of the variable unit (a value from 1 through 5 that indicates the resulting unit of measurement).

Select Case unit
    Case 1
        result = PointsToCentimeters(data)
    Case 2
        result = PointsToInches(data)
    Case 3
        result = PointsToLines(data)
    Case 4
        result = PointsToMillimeters(data)
    Case 5
        result = PointsToPicas(data)
    Case Else
        Error 5
End Select