Skip to content

Latest commit

 

History

History
72 lines (38 loc) · 1.39 KB

58bfd9ce-dee7-0a14-8ec1-7e16a5e967d8.md

File metadata and controls

72 lines (38 loc) · 1.39 KB

Application.PointsToInches Method (Publisher)

Converts a measurement from points to inches (1 in = 72 points). Returns the converted measurement as a Single.

Syntax

expression. PointsToInches( 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 inches.

Return Value

Single

Remarks

Use the InchesToPoints method to convert measurements in inches to points.

Example

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

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 _ 
 .PointsToInches(Value:=Val(strInput)), _ 
 "0.00") & " in" 
 
 MsgBox strOutput 
Loop 

See also

Concepts

Application Object

Other resources

Application Object Members