word vba 格式化文本
2021-02-20 21:17
标签:port 页脚 stp send ali printing width vertica span 摘抄自网络的一些代码,以备后用。 word vba 格式化文本 标签:port 页脚 stp send ali printing width vertica span 原文地址:https://www.cnblogs.com/GuominQiu/p/12680041.html.Orientation = wdOrientPortrait ‘页面方向为纵向
.TopMargin = CentimetersToPoints(4.1) ‘上边距为4.1cm
.BottomMargin = CentimetersToPoints(4.1) ‘下边距为4.1cm
.LeftMargin = CentimetersToPoints(3.05) ‘左边距为3.05cm
.RightMargin = CentimetersToPoints(3.05) ‘右边距为3.05com
.Gutter = CentimetersToPoints(0) ‘装订线0cm
.HeaderDistance = CentimetersToPoints(1.5) ‘页眉1.5cm
.FooterDistance = CentimetersToPoints(1.75) ‘页脚1.75cm
.PageWidth = CentimetersToPoints(21) ‘纸张宽21cm
.PageHeight = CentimetersToPoints(29.7) ‘纸张高29.7cm
.SectionStart = wdSectionNewPage ‘节的起始位置:新建页
.OddAndEvenPagesHeaderFooter = False ‘不勾选“奇偶页不同”
.DifferentFirstPageHeaderFooter = False ‘不勾选“首页不同”
.VerticalAlignment = wdAlignVerticalTop ‘页面垂直对齐方式为“顶端对齐”
.SuppressEndnotes = False ‘不隐藏尾注
.MirrorMargins = False ‘不设置首页的内外边距
.BookFoldRevPrinting = False ‘不设置手动双面打印
.BookFoldPrintingSheets = 1 ‘默认打印份数为1
.GutterPos = wdGutterPosLeft ‘装订线位于左侧
.LayoutMode = wdLayoutModeLineGrid ‘版式模式为“只指定行网格”
上一篇:C#学习笔记第二发---面向对象
下一篇:获取class 信息 java