Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Deb Deb is offline
external usenet poster
 
Posts: 102
Default Way to insert a footer in an entire workbook w/o altering headers

Everytime I select each tab and insert a picture for a footer, it messes up
the headers that are already established. Any suggestions?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 143
Default Way to insert a footer in an entire workbook w/o altering headers

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   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 143
Default Way to insert a footer in an entire workbook w/o altering headers

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Headers and Footer to an Entire Workbook?? Spyder Excel Discussion (Misc queries) 5 February 25th 10 03:46 PM
Altering an Entire Column of Data silva Excel Discussion (Misc queries) 4 March 3rd 09 07:34 PM
Can you put the same header/footer on the entire workbook? jackiemac1595 Excel Worksheet Functions 2 October 2nd 06 04:43 PM
Can I edit headers/footers for an entire workbook? On Line All The Time Excel Discussion (Misc queries) 2 December 1st 05 12:23 AM
How can I set up headers/footers for an entire workbook vs sheet jaydub Excel Discussion (Misc queries) 1 September 21st 05 05:57 PM


All times are GMT +1. The time now is 01:13 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"