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


Application.PicasToPoints Method (Publisher)

Converts a measurement from picas to points (1 pica = 12 points). Returns the converted measurement as a Single.

Syntax

expression .PicasToPoints(Value)

expression A variable that represents an Application object.

Parameters

Name

Required/Optional

Data Type

Description

Value

Required

Single

The pica value to be converted to points.

Return Value

Single

Remarks

Use the PointsToPicas method to convert measurements in points to picas.

Example

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

See Also

Concepts

Application Object

Application Object Members