PC Review


Reply
Thread Tools Rate Thread

How do I copy a header and footer to multiple worksheets?

 
 
=?Utf-8?B?c3NyNQ==?=
Guest
Posts: n/a
 
      8th Aug 2006
I have a worksheet that has a custom header and footer and I need to copy it
to 40 worksheets, is it possible to do without goining into each worksheet
individually and setting it up? I am using Excel 2003. Has anybody
encountered this problem?
 
Reply With Quote
 
 
 
 
Gord Dibben
Guest
Posts: n/a
 
      8th Aug 2006
Select the sheet with the custom header and footer.

Right-click on the sheet tab and "select all sheets".

Go into File>Page Setup>Headers and Footers.

Click on OK without doing anything else.

All sheets now have that header/footer.

Right-click and "ungroup sheets" or select any sheet but the active sheet.


Gord Dibben MS Excel MVP

On Tue, 8 Aug 2006 12:16:02 -0700, ssr5 <(E-Mail Removed)> wrote:

>I have a worksheet that has a custom header and footer and I need to copy it
>to 40 worksheets, is it possible to do without goining into each worksheet
>individually and setting it up? I am using Excel 2003. Has anybody
>encountered this problem?


 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmlsbCBX?=
Guest
Posts: n/a
 
      5th Oct 2006
Very useful and so simple. Many thanks for this post, i can use the method
on all my worksheets, and save a lot of time

"Gord Dibben" wrote:

> Select the sheet with the custom header and footer.
>
> Right-click on the sheet tab and "select all sheets".
>
> Go into File>Page Setup>Headers and Footers.
>
> Click on OK without doing anything else.
>
> All sheets now have that header/footer.
>
> Right-click and "ungroup sheets" or select any sheet but the active sheet.
>
>
> Gord Dibben MS Excel MVP
>
> On Tue, 8 Aug 2006 12:16:02 -0700, ssr5 <(E-Mail Removed)> wrote:
>
> >I have a worksheet that has a custom header and footer and I need to copy it
> >to 40 worksheets, is it possible to do without goining into each worksheet
> >individually and setting it up? I am using Excel 2003. Has anybody
> >encountered this problem?

>
>

 
Reply With Quote
 
Teresa
Guest
Posts: n/a
 
      14th Feb 2008
Hi, I tried this on my workbook and it worked great EXCEPT it changed the
page layout of all the worksheets. I had each worksheet set up the way I
needed it to be (portrait/letter;landscape/legal;etc). After following the
instructions to get a common header on each page, the worksheets print
layouts were all changed too. Is there a way to do this and ONLY affect the
header/footer? Thanks!

"Gord Dibben" wrote:

> Select the sheet with the custom header and footer.
>
> Right-click on the sheet tab and "select all sheets".
>
> Go into File>Page Setup>Headers and Footers.
>
> Click on OK without doing anything else.
>
> All sheets now have that header/footer.
>
> Right-click and "ungroup sheets" or select any sheet but the active sheet.
>
>
> Gord Dibben MS Excel MVP
>
> On Tue, 8 Aug 2006 12:16:02 -0700, ssr5 <(E-Mail Removed)> wrote:
>
> >I have a worksheet that has a custom header and footer and I need to copy it
> >to 40 worksheets, is it possible to do without goining into each worksheet
> >individually and setting it up? I am using Excel 2003. Has anybody
> >encountered this problem?

>
>

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      14th Feb 2008
Hope you didn't save the workbook<g>

To just affect the headers/footers and not the rest of the page setup you will
have to use a macro to set the headers/footers.

Here is one to set the centerfooter for all sheets.

Sub Path_All_Sheets()
Set wkbktodo = ActiveWorkbook
For Each ws In wkbktodo.Worksheets
ws.PageSetup.RightFooter = ActiveWorkbook.FullName & " " & Chr(13) _
& Application.UserName & " " & Date
Next
End Sub

And a variation using a cell value

Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
ws.PageSetup.CenterFooter = "&""Algerian,Regular""&16" _
& ws.Range("A1").value
Next


Gord

On Wed, 13 Feb 2008 16:01:08 -0800, Teresa <(E-Mail Removed)>
wrote:

>Hi, I tried this on my workbook and it worked great EXCEPT it changed the
>page layout of all the worksheets. I had each worksheet set up the way I
>needed it to be (portrait/letter;landscape/legal;etc). After following the
>instructions to get a common header on each page, the worksheets print
>layouts were all changed too. Is there a way to do this and ONLY affect the
>header/footer? Thanks!
>
>"Gord Dibben" wrote:
>
>> Select the sheet with the custom header and footer.
>>
>> Right-click on the sheet tab and "select all sheets".
>>
>> Go into File>Page Setup>Headers and Footers.
>>
>> Click on OK without doing anything else.
>>
>> All sheets now have that header/footer.
>>
>> Right-click and "ungroup sheets" or select any sheet but the active sheet.
>>
>>
>> Gord Dibben MS Excel MVP
>>
>> On Tue, 8 Aug 2006 12:16:02 -0700, ssr5 <(E-Mail Removed)> wrote:
>>
>> >I have a worksheet that has a custom header and footer and I need to copy it
>> >to 40 worksheets, is it possible to do without goining into each worksheet
>> >individually and setting it up? I am using Excel 2003. Has anybody
>> >encountered this problem?

>>
>>


 
Reply With Quote
 
Bob Arnett
Guest
Posts: n/a
 
      9th May 2008
I'm actually trying to do what Teresa accidently did and that is repeat all
the page setup settings on all worksheets. Unfortunately, in Excel 2007, I
can't seem to find a way to change the page setup that will 'take' on all
worksheets in the selected sheets. Is there another way to do this in Excel
2007?

"Teresa" wrote:

> Hi, I tried this on my workbook and it worked great EXCEPT it changed the
> page layout of all the worksheets. I had each worksheet set up the way I
> needed it to be (portrait/letter;landscape/legal;etc). After following the
> instructions to get a common header on each page, the worksheets print
> layouts were all changed too. Is there a way to do this and ONLY affect the
> header/footer? Thanks!
>
> "Gord Dibben" wrote:
>
> > Select the sheet with the custom header and footer.
> >
> > Right-click on the sheet tab and "select all sheets".
> >
> > Go into File>Page Setup>Headers and Footers.
> >
> > Click on OK without doing anything else.
> >
> > All sheets now have that header/footer.
> >
> > Right-click and "ungroup sheets" or select any sheet but the active sheet.
> >
> >
> > Gord Dibben MS Excel MVP
> >
> > On Tue, 8 Aug 2006 12:16:02 -0700, ssr5 <(E-Mail Removed)> wrote:
> >
> > >I have a worksheet that has a custom header and footer and I need to copy it
> > >to 40 worksheets, is it possible to do without goining into each worksheet
> > >individually and setting it up? I am using Excel 2003. Has anybody
> > >encountered this problem?

> >
> >

 
Reply With Quote
 
Gord Dibben
Guest
Posts: n/a
 
      10th May 2008
See Ron de Bruin's site for where to find the 2007 commands.

I don't have 2007 so can't tell you how to do much but I think you can still
group sheets and do a page setup for all.


Gord

On Fri, 9 May 2008 13:25:20 -0700, Bob Arnett
<(E-Mail Removed)> wrote:

>I'm actually trying to do what Teresa accidently did and that is repeat all
>the page setup settings on all worksheets. Unfortunately, in Excel 2007, I
>can't seem to find a way to change the page setup that will 'take' on all
>worksheets in the selected sheets. Is there another way to do this in Excel
>2007?
>
>"Teresa" wrote:
>
>> Hi, I tried this on my workbook and it worked great EXCEPT it changed the
>> page layout of all the worksheets. I had each worksheet set up the way I
>> needed it to be (portrait/letter;landscape/legal;etc). After following the
>> instructions to get a common header on each page, the worksheets print
>> layouts were all changed too. Is there a way to do this and ONLY affect the
>> header/footer? Thanks!
>>
>> "Gord Dibben" wrote:
>>
>> > Select the sheet with the custom header and footer.
>> >
>> > Right-click on the sheet tab and "select all sheets".
>> >
>> > Go into File>Page Setup>Headers and Footers.
>> >
>> > Click on OK without doing anything else.
>> >
>> > All sheets now have that header/footer.
>> >
>> > Right-click and "ungroup sheets" or select any sheet but the active sheet.
>> >
>> >
>> > Gord Dibben MS Excel MVP
>> >
>> > On Tue, 8 Aug 2006 12:16:02 -0700, ssr5 <(E-Mail Removed)> wrote:
>> >
>> > >I have a worksheet that has a custom header and footer and I need to copy it
>> > >to 40 worksheets, is it possible to do without goining into each worksheet
>> > >individually and setting it up? I am using Excel 2003. Has anybody
>> > >encountered this problem?
>> >
>> >


 
Reply With Quote
 
Bob Arnett
Guest
Posts: n/a
 
      12th May 2008
Well, although, that was exactly what I thought I had previously done, I went
back and did that again and this time it worked. I'm not sure what I did
differently but at least it did do what I wanted. Thanks for the help.

"Gord Dibben" wrote:

> See Ron de Bruin's site for where to find the 2007 commands.
>
> I don't have 2007 so can't tell you how to do much but I think you can still
> group sheets and do a page setup for all.
>
>
> Gord
>
> On Fri, 9 May 2008 13:25:20 -0700, Bob Arnett
> <(E-Mail Removed)> wrote:
>
> >I'm actually trying to do what Teresa accidently did and that is repeat all
> >the page setup settings on all worksheets. Unfortunately, in Excel 2007, I
> >can't seem to find a way to change the page setup that will 'take' on all
> >worksheets in the selected sheets. Is there another way to do this in Excel
> >2007?
> >
> >"Teresa" wrote:
> >
> >> Hi, I tried this on my workbook and it worked great EXCEPT it changed the
> >> page layout of all the worksheets. I had each worksheet set up the way I
> >> needed it to be (portrait/letter;landscape/legal;etc). After following the
> >> instructions to get a common header on each page, the worksheets print
> >> layouts were all changed too. Is there a way to do this and ONLY affect the
> >> header/footer? Thanks!
> >>
> >> "Gord Dibben" wrote:
> >>
> >> > Select the sheet with the custom header and footer.
> >> >
> >> > Right-click on the sheet tab and "select all sheets".
> >> >
> >> > Go into File>Page Setup>Headers and Footers.
> >> >
> >> > Click on OK without doing anything else.
> >> >
> >> > All sheets now have that header/footer.
> >> >
> >> > Right-click and "ungroup sheets" or select any sheet but the active sheet.
> >> >
> >> >
> >> > Gord Dibben MS Excel MVP
> >> >
> >> > On Tue, 8 Aug 2006 12:16:02 -0700, ssr5 <(E-Mail Removed)> wrote:
> >> >
> >> > >I have a worksheet that has a custom header and footer and I need to copy it
> >> > >to 40 worksheets, is it possible to do without goining into each worksheet
> >> > >individually and setting it up? I am using Excel 2003. Has anybody
> >> > >encountered this problem?
> >> >
> >> >

>
>

 
Reply With Quote
 
New Member
Join Date: Aug 2012
Posts: 1
 
      27th Aug 2012
Your answer was nothing less than brilliant! Thanks!


Quote:
Originally Posted by Gord Dibben View Post
Select the sheet with the custom header and footer.

Right-click on the sheet tab and "select all sheets".

Go into File>Page Setup>Headers and Footers.

Click on OK without doing anything else.

All sheets now have that header/footer.

Right-click and "ungroup sheets" or select any sheet but the active sheet.


Gord Dibben MS Excel MVP

On Tue, 8 Aug 2006 12:16:02 -0700, ssr5 <(E-Mail Removed)> wrote:

>I have a worksheet that has a custom header and footer and I need to copy it
>to 40 worksheets, is it possible to do without goining into each worksheet
>individually and setting it up? I am using Excel 2003. Has anybody
>encountered this problem?
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Header/Footer commands grayed out/footer unavailable. Anne Microsoft Word Document Management 1 18th Mar 2009 09:03 PM
With clicking View Header and Footer does not show the header and =?Utf-8?B?SXRhbA==?= Microsoft Word Document Management 1 24th Apr 2006 02:52 PM
Shorcut key for header header footer =?Utf-8?B?ZXhjZWxtYW4zMg==?= Microsoft Word Document Management 2 5th Aug 2004 11:43 PM
Changing (Part of) Header Without Changing Footer or Rest of Header Paul Cross Microsoft Excel Programming 3 20th May 2004 10:42 PM
Excel-Footer Mass change of only Header and not footer M.Raguram Microsoft Excel Worksheet Functions 1 16th Jan 2004 01:30 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:27 AM.