ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Can you repeat a footer on each worksheet within a workbook? (https://www.excelbanter.com/excel-discussion-misc-queries/141956-can-you-repeat-footer-each-worksheet-within-workbook.html)

Dhilson

Can you repeat a footer on each worksheet within a workbook?
 
I have a multiple page workbook and would like to have the same footer appear
on each worksheet within the workbook. Is there any way to do that without
creating the footer on each sheet?

Barb Reinhardt

Can you repeat a footer on each worksheet within a workbook?
 
Put something like this in your Worksheet_BeforePrint Event. You can read
about workbook events here.

http://www.mvps.org/dmcritchie/excel/event.htm

Sub Workbook_BeforePrint(Cancel As Boolean)

Application.ScreenUpdating = False
With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = "Proprietary"

.RightHeader = ""
.LeftFooter = "Left Footer"

.CenterFooter = "Center Footer" '& Chr(10) & "&P of &N"
.RightFooter = ""
.CenterHorizontally = True
.CenterVertically = False
End With
Application.ScreenUpdating = True
End Sub

"Dhilson" wrote:

I have a multiple page workbook and would like to have the same footer appear
on each worksheet within the workbook. Is there any way to do that without
creating the footer on each sheet?


Peo Sjoblom

Can you repeat a footer on each worksheet within a workbook?
 
Group the sheets before you apply the footer (select the sheets that you
want to be included using either ctrl + mouse or shift + mouse), then
ungroup them when you are finished

--
Regards,

Peo Sjoblom

"Dhilson" wrote in message
...
I have a multiple page workbook and would like to have the same footer
appear
on each worksheet within the workbook. Is there any way to do that
without
creating the footer on each sheet?





All times are GMT +1. The time now is 10:55 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com