Share via


Application.PointsToEmus Method

Publisher Developer Reference

Converts a measurement from points to emus (12700 emus = 1 point). Returns the converted measurement as a Single.

Syntax

expression.PointsToEmus(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 emus.

Return Value
Single

Remarks

Use the EmusToPoints method to convert measurements in emus to points.

Example

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

Visual Basic for Applications
  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 _
    .<strong class="bterm">PointsToEmus</strong>(Value:=Val(strInput)), _
    "0.00") &amp; " emus"

MsgBox strOutput

Loop

See Also