如何在不影响页脚/页眉的情况下启用页码



我试图将页码放在页面底部的右侧,但它不断移动页脚的文本使其偏离中心。

有人知道如何防止这种情况发生吗?

另外,有谁知道如何启用像 3/4 这样的总页面。任何帮助将不胜感激。

这是我到目前为止所拥有的:

.ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).range.Paragraphs.Alignment = wdAlignParagraphCenter 'Centers Header'
.ActiveDocument.Sections(1).Headers(wdHeaderFooterPrimary).range.InlineShapes.AddPicture ("C:UserspgatesDesktop Logo Swoops cropped 2.JPG") 'Calls for image header'
.ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).range.Paragraphs.Alignment = wdAlignParagraphCenter 'Centers Footer'
.ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).range.Text = " rwetwet" & vbCr & "wetrwet" & vbCr & "Phone:wertttr"
.ActiveDocument.Sections(1).Footers(wdHeaderFooterPrimary).PageNumbers.Add

Word 中没有"启用"页码这样的东西Microsoft。您可以自由设计页脚。似乎您在Excel或PowerPoint中寻找类似Microsoft但是Microsoft Word中的工作方式有所不同。

我个人会

  • 将表格插入具有两列或三列的页脚区域
  • 透明的边框

因此,您可以在右侧输入页码,而页脚中的其他文本则保留在左侧(或中间,具体取决于列(。

___________________ ________________________ ___________
|_Your footer text__|_Center part if needed__|_Page X/Y__|

更新

看看你的另一个问题。我已经在那里给出了答案。

最新更新