协同大作战协同斗技:Application.InchesToPoints 方法

来源:百度文库 编辑:中财网 时间:2024/05/01 11:08:01
该方法用于将度量单位从英寸转换为磅。
Function InchesToPoints(inches As double) As double

参数说明

inches

Double 类型,必需。表示要转换成磅值的英寸值。

返回值

Double 类型。

样例

' 本示例将 Sheet1 的左边距设置为 2.5 英寸。Sub InchesToPoints()    Worksheets("Sheet1").PageSetup.LeftMargin = _        Application.InchesToPoints(2.5)End Sub