Excel页脚样式可以通过VBA代码设置,是一段示例代码:Sub 设置页脚样式()
Excel页脚样式可以通过VBA代码设置,是一段示例代码:
Sub 设置页脚样式()
'定义变量
Dim ws As Worksheet
Dim FooterText As String
'设置页脚文本
FooterText = "&""Arial""&8Page &P of &N"
'设置当前工作表的页脚
Set ws = ActiveSheet
With ws.PageSetup
.LeftFooter = FooterText
.CenterFooter = ""
.RightFooter = ""
End With
End Sub
本站系公益性非盈利分享网址,本文来自用户投稿,不代表码文网立场,如若转载,请注明出处
评论列表(21条)