#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 28
Default Header & Footer

Hi,

Is there a way to create a macro/option that will apply to all new
books a predifined header and footer.

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Header & Footer

Couple of ways to go.

Open a new workbook. Customize as you wish.

FileSave As Type: scroll down to Excel Template(*.XLT) and select. Name your
workbook "BOOK"(no quotes). Excel will add the .XLT to save as BOOK.XLT.

Store this workbook in the XLSTART folder usually located at........

C:\Documents and Settings\username\Application Data\Microsoft\Excel\XLSTART

This will be the default workbook for FileNew or the Toolbar button FileNew or
CTRL + n

WARNING................Do not use FileNew...Blank Workbook or you will get the
Excel default workbook.

NOTE: Existing workbooks are not affected by these settings.

You can also open a new workbook and delete all but one sheet. Customize as
you wish then save this as SHEET.XLT in XLSTART folder also. It now becomes
the default InsertSheet.

More can be found on this in Help under "templates"(no quotes).

Second method would be a macro in your Personal.xls or an add-in which you would
run after you have opened a new default Excel workbook.

Example macro...............

Sub Cell_In_AllFooters()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
ws.PageSetup.CenterFooter = ws.Range("A2").Value
Next
End Sub



Gord Dibben Excel MVP



On Thu, 13 Dec 2007 11:16:04 -0800 (PST), Carpe Diem
wrote:

Hi,

Is there a way to create a macro/option that will apply to all new
books a predifined header and footer.

Thanks in advance


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header/Footer jackiemac1595 Excel Discussion (Misc queries) 5 July 29th 08 05:24 PM
header/footer Talladega Setting up and Configuration of Excel 2 June 15th 07 11:54 AM
Header & Footer RAJEEV CHADHA Excel Worksheet Functions 1 April 13th 05 09:39 AM
header footer M&A_Jack Excel Worksheet Functions 1 March 8th 05 07:42 PM
header or footer ParTeeGolfer Excel Worksheet Functions 4 January 9th 05 07:33 PM


All times are GMT +1. The time now is 05:09 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"