Table of contents
TOC
Collapse the table of content
Expand the table of content

Application.PointsToPicas Method (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

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

Syntax

expression. PointsToPicas( Value)

_expression_A variable that represents an Application object.

Parameters

NameRequired/OptionalData TypeDescription
ValueRequiredSingleThe point value to be converted to picas.

Return Value

Single

Remarks

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

Example

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

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 _ 
 .PointsToPicas(Value:=Val(strInput)), _ 
 "0.00") &; " picas" 

 MsgBox strOutput 
Loop

See also

Concepts

Application Object

© 2018 Microsoft