Printing without Headers or Footers Using PAGE.SETUP in ExcelLast reviewed: August 20, 1995Article ID: Q25764 |
The information in this article applies to:
In Microsoft Excel, use the following macro command to remove the header and footer from the active sheet:
=PAGE.SETUP("","",0.75,0.75,1,1,TRUE,TRUE)The double quotation marks for the header and footer indicate that an empty string is to be used for the header and footer. In Microsoft Excel versions 5.0 and later, you can use the following codein a Visual Basic module to remove the header and footer from the active sheet:
With ActiveSheet.PageSetup ' Set the value of each header and footer to empty .LeftHeader = "" .CenterHeader = "" .RightHeader = "" .LeftFooter = "" .CenterFooter = "" .RightFooter = "" End With |
KBCategory: kbusage
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |