Yes i understand how to do that, I am looking for a script to do that
automatically to a file that has 22 worksheets. I really did not want
to go to each worksheet individually.
If you select the left-most worksheet, then Shift-Click on the
right-most worksheet, you'll group the sheets ("[Group]" will appear in
the title bar). You can then make changes to all the sheets at once,
including the footers.
Just make sure that you then right- (or CTRL-) click the worksheet tabs
and choose Ungroup before making any changes that you only want to
affect one sheet.
Or you could use something like this macro:
Public Sub ChangeAllFooters()
Const sFOOTER As String = "&F"
Dim ws As Worksheet
For Each ws In ThisWorkbook.Worksheets
ws.PageSetup.LeftFooter = sFOOTER
Next ws
End Sub