Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pre-set Footers (or Headers) in Excel

Status
Not open for further replies.

johns88

Technical User
Apr 16, 2002
12
0
0
CA
When I print Excel worksheets, I like to print in the footer the date & time, the page number of number of pages, and the file name & worksheet name.
Currently, I have to manually set this in every worksheet I create or open.
Any ideas how I could programmically set these for all worksheets in an Excel file.
Help would be greatly appreciated.
Thanks.
John

 
You can create yourself a template of a blank Excel workbook with your customized headers and footers in place. This will also work on margins if you have to make any adjustments to themn before printing as well. Bryan Meek
bmeek@adelphia.net
 
You can try the following VBA code...

With ActiveSheet.PageSetup
.LeftFooter = "&""Arial,Regular," & "Place text here"
End With

- vbMax
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top