Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Everytime I select each tab and insert a picture for a footer, it messes up
the headers that are already established. Any suggestions? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Sure. You need to open your VBA editor (Alt+F11) and create a new module.
You can do that by going to the Tool Bar and selecting Insert = Module. Once you are in the new Module, paste in this code: Sub addFooter() Dim ws As Worksheet For Each ws In Worksheets ws.PageSetup.CenterFooter = "&P of &N" Next End Sub This particular code puts the Page # of Pages code in the middle. What were you looking to add? -- Regards, PJ Please rate this post using the vote buttons if it was helpful. "Deb" wrote: Everytime I select each tab and insert a picture for a footer, it messes up the headers that are already established. Any suggestions? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I just saw the note about adding a picture. Here is the code for that:
Sub addFooter Dim ws As Worksheet ActiveSheet.PageSetup.CenterFooterPicture.Filename = _ "File path and name here" For Each ws In Worksheets ws.PageSetup.CenterFooter = "&G" Next End Sub -- Regards, PJ Please rate this post using the vote buttons if it was helpful. "Deb" wrote: Everytime I select each tab and insert a picture for a footer, it messes up the headers that are already established. Any suggestions? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding Headers and Footer to an Entire Workbook?? | Excel Discussion (Misc queries) | |||
Altering an Entire Column of Data | Excel Discussion (Misc queries) | |||
Can you put the same header/footer on the entire workbook? | Excel Worksheet Functions | |||
Can I edit headers/footers for an entire workbook? | Excel Discussion (Misc queries) | |||
How can I set up headers/footers for an entire workbook vs sheet | Excel Discussion (Misc queries) |