2016-09-06 214 views
1

是否可以在某些页面(例如最后一页)上跳过页脚页面?在Excel中的某些页面上跳过页脚页面

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

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

回答