Поделиться через


Application.EmusToPoints Method (Publisher)

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

Syntax

expression .EmusToPoints(Value)

expression A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

Value

Required

Single

An expression that returns one of the objects in the Applies To list.

Return Value

Single

Remarks

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

Example

This example converts measurements in emus 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 emus (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) & " emus = " _ 
 & Format(Application _ 
 .EmusToPoints(Value:=Val(strInput)), _ 
 "0.00") & " points" 
 
 MsgBox strOutput 
Loop 

See Also

Concepts

Application Object

Application Object Members