Converts a measurement from millimeters to points (1 mm = 2.835 points). Returns the converted measurement as a Single.
expression.MillimetersToPoints(Value)
expression Required. An expression that returns one of the objects in the Applies To list.
Value Required Single. The millimeter value to be converted to points.
Use the PointsToMillimeters method to convert measurements in points to millimeters.
This example converts measurements in millimeters entered by the user to measurements in points.
Dim strInput As String Dim strOutput As String Do While True ' Get input from user. strInput = InputBox( _ Prompt:="Enter measurement in millimeters (0 to cancel): ", _ Default:="0") ' Exit the loop if user enters zero. If Val(strInput) = 0 Then Exit Do ' Evaluate and display result. strOutput = Trim(strInput) & " mm = " _ & Format(Application _ .Mill imetersToPoints(Value:=Val(strInput)), _ "0.00") & " points" MsgBox strOutput Loop