以磅为单位返回或设置底端边距的大小。Double 类型,可读写。
边距的设置和返回均以磅为单位。可使用 InchesToPoints 方法进行英寸到磅值的转换,也可使用 CentimetersToPoints 方法进行厘米到磅值的转换。
下面的两个示例将 Sheet1 的底端边距设为 0.5 英寸(36 磅)。
Worksheets("Sheet1").PageSetup.BottomMargin = _
Application.InchesToPoints(0.5)
Worksheets("Sheet1").PageSetup.BottomMargin = 36
本示例显示 Sheet1 底端边距的当前设定值。
marginInches = Worksheets("Sheet1").PageSetup.BottomMargin / _
Application.InchesToPoints(1)
MsgBox "The current bottom margin is " & marginInches & " inches"