|
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
在此代码中,增加一个,首页不插入页码的语句
Sub 插入普通页码()
ActiveDocument.PageSetup.OddAndEvenPagesHeaderFooter = False
With ActiveWindow.ActivePane.View
.SeekView = wdSeekCurrentPageFooter
With Selection
.Expand wdStory
.Font.Size = 14
.Font.Name = "宋体"
.ParagraphFormat.Alignment = wdAlignParagraphCenter
.TypeText "-"
.Fields.Add .Range, wdFieldPage
.TypeText "-"
.ParagraphFormat.Alignment = wdAlignParagraphRight
End With
.SeekView = wdSeekMainDocument
End With
End Sub
VBA页码.rar
(9.06 KB, 下载次数: 23)
请老师们帮帮忙,谢谢大家了!
|
|