setting a header and footer for entire worksheet

basher450

New Member
Joined
Jan 26, 2005
Messages
23
hi

ok, setting an header and footer for a sheet is easy.
is there a way to set an header and footer for the entire worksheet, or save a custom header and footer so I can use on other sheets.

I have 9 sheets I want to add headers and footers and I don't what to go one by one.

thank you
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Just select all of the sheets (hold down shift and click on each sheet tab) to which you'd like to apply your header before you create it.
 
Upvote 0
Or you could use code in the workbook BeforePrint event.
Code:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
    With ActiveSheet.PageSetup
        .LeftHeader = ""
        .CenterHeader = "MyHeader"
        .RightHeader = "&P"
    End With
End Sub
 
Upvote 0
you can also just right click on any sheet tab and then choose select all sheets then go to page setup and setup your header and footer.
 
Upvote 0

Forum statistics

Threads
1,224,271
Messages
6,177,609
Members
452,785
Latest member
3110vba

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top