Application.PointsToMillimeters method (Publisher)

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

Syntax

expression.PointsToMillimeters (Value)

expression A variable that represents an Application object.

Parameters

Name Required/Optional Data type Description
Value Required Single The point value to be converted to millimeters.

Return value

Single

Remarks

Use the MillimetersToPoints method to convert measurements in millimeters to points.

Example

This example converts measurements in points entered by the user to measurements in millimeters.

Dim strInput As String 
Dim strOutput As String 
 
Do While True 
 ' Get input from user. 
 strInput = InputBox( _ 
 Prompt:="Enter measurement in points (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) & " points = " _ 
 & Format(Application _ 
 .PointsToMillimeters(Value:=Val(strInput)), _ 
 "0.00") & " mm" 
 
 MsgBox strOutput 
Loop 

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.