ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how to add footers to ALL sheets in a workbook at once? (https://www.excelbanter.com/excel-discussion-misc-queries/49230-how-add-footers-all-sheets-workbook-once.html)

KikiMarie

how to add footers to ALL sheets in a workbook at once?
 
There must be a way to format all sheets in a workbook with the same footer
format (i.e. file name, tab and date) at once rather than tab by tab. Can
anyone tell me how?

Dave Peterson

Try grouping all your worksheets.

Right click on any of them and select "Group Sheets"

Then set the footer.

Remember to ungroup the worksheets when you're done.

KikiMarie wrote:

There must be a way to format all sheets in a workbook with the same footer
format (i.e. file name, tab and date) at once rather than tab by tab. Can
anyone tell me how?


--

Dave Peterson

Jim May

You can also enter into a standard module:

Sub FooterInAll()
Dim i As Integer
Dim Noshts As Integer
Noshts = ThisWorkbook.Worksheets.Count
For i = 1 To Noshts
With Sheets
Sheets(i).PageSetup.LeftFooter = "This is a test"
End With
Next i
End Sub

For what it's worth,,,


"Dave Peterson" wrote:

Try grouping all your worksheets.

Right click on any of them and select "Group Sheets"

Then set the footer.

Remember to ungroup the worksheets when you're done.

KikiMarie wrote:

There must be a way to format all sheets in a workbook with the same footer
format (i.e. file name, tab and date) at once rather than tab by tab. Can
anyone tell me how?


--

Dave Peterson



All times are GMT +1. The time now is 08:12 AM.

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