Excel 修改新建文档左右页边距vba怎么写

如题所述

With ActiveSheet.PageSetup
'括号内数值乘以2.54即为页面设置数据
.LeftMargin = Application.InchesToPoints(0.94488188976378)
.RightMargin = Application.InchesToPoints(0.94488188976378)
.TopMargin = Application.InchesToPoints(0.984251968503937)
.BottomMargin = Application.InchesToPoints(0.984251968503937)
.HeaderMargin = Application.InchesToPoints(0.511811023622047)
.FooterMargin = Application.InchesToPoints(0.511811023622047)
End With
温馨提示:答案为网友推荐,仅供参考
相似回答