Application.EmusToPoints メソッド (Publisher)

測定をエミューから ポイント (12700 エミュー = 1 ポイント) に変換します。 変換した単位を単精度浮動小数点型 (Single) の値として取得します。

構文

EmusToPoints ()

expressionApplication オブジェクトを 表す変数。

パラメーター

名前 必須 / オプション データ型 説明
必須 Single ポイントに変換する emu 値。

戻り値

1 行

注釈

ポイント単位から emu 単位に変換するには、 PointsToEmus メソッドを使用します。

次の使用例は、ユーザーが入力した emu 単位の値を、ポイント単位に変更します。

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 

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。