|
VBA如何一次性设置整个工作簿的页面设置
如下代码如何能设置整个工作簿的页面设置,谢谢!
With .PageSetup
.LeftMargin = Application.InchesToPoints(0.31496062992126) '左边距
.RightMargin = Application.InchesToPoints(0.31496062992126) '右边距
.TopMargin = Application.InchesToPoints(0.78740157480315) '上边距
.BottomMargin = Application.InchesToPoints(0.393700787401575) '下边距
.HeaderMargin = Application.InchesToPoints(0.196850393700787) '页眉距
.FooterMargin = Application.InchesToPoints(0.196850393700787) '页脚距
.CenterHorizontally = True '水平居中
.CenterVertically = True '垂直居中
.Orientation = xlLandscape '横向打印
.BlackAndWhite = True '单色打印
.Zoom = 100 '打印缩放100%
End With |
|