Sub Macro1()
'
' Macro1 Macro
' 宏由 hjs 录制,时间: 2023/02/11
'
'
ActiveSheet.PageSetup.Orientation = xlLandscape '页面横向
ActiveSheet.PageSetup.Zoom = 90 '打印比例
ActiveSheet.PageSetup.CenterFooter = "&A【02文化发展集团】" '页脚
ActiveSheet.PageSetup.TopMargin = 11.338583
ActiveSheet.PageSetup.BottomMargin = 37.338583
ActiveSheet.PageSetup.HeaderMargin = 17.007874
ActiveSheet.PageSetup.FooterMargin = 14.173228
ActiveSheet.Range("c4:c50").HorizontalAlignment = xlHAlignLeft 'C列居左对齐
ActiveSheet.Rows("5:50").RowHeight = 16 '行高16
End Sub
VBA常用页面设置代码
最新推荐文章于 2024-05-01 10:55:34 发布