【发布时间】:2018-10-27 16:43:04
【问题描述】:
我正在开发一个 VBA 宏,我自己只编写了它的一部分,用于 MS-Word,它改变页面的方向,然后将前一页的页眉和页脚复制到新页面和其他一些东西:
Selection.PageSetup.Orientation = wdOrientLandscape
ActiveDocument.Sections.Last.PageSetup.DifferentFirstPageHeaderFooter = False
ActiveDocument.Sections(ActiveDocument.Sections.Last.index - 1).Headers(wdHeaderFooterPrimary).Range.Select
Selection.Copy
ActiveDocument.Sections.Last.Headers(wdHeaderFooterPrimary).Range.Select
Selection.Paste
ActiveDocument.Sections.Last.Headers(wdHeaderFooterPrimary).LinkToPrevious = False
ActiveDocument.Sections.Last.Footers(wdHeaderFooterPrimary).LinkToPrevious = False
formatHeader wdHeaderFooterPrimary
formatHeader wdHeaderFooterFirstPage
TextBox 中有一个锚定到标题的文本。我现在要做的是更改其在“横向”方向的页面上的位置。
如何更改布局选项(见下图)?我找不到任何信息。
如您所见,TextBox 中侧面的段落不在中间。所以我想把它移高一点。您还可以在此图像中看到锚点。
这就是我作为用户在 Word 中的操作方式:
【问题讨论】:
标签: vba ms-word anchor word-2010