Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
KC KC is offline
external usenet poster
 
Posts: 107
Default Changing footers on all worksheets without changing print set up

How do I change all the footers in a workbook without changing the page set
up? When I try to change via view header/footer it still changes the page
lay out on all the worksheets!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default Changing footers on all worksheets without changing print set up

A little macro should be able to handle that for you:

Sub CreateFooters()
'
Dim anySheet As Worksheet
For Each anySheet In Worksheets
With anySheet.PageSetup
.LeftFooter = "Left Part of Footer"
.CenterFooter = "Center Portion of footer"
.RightFooter = "Right part of footer"
End With
Next
End Sub

change the text to whatever you need it to be. If you have special stuff to
put in such as dates, page numbers, etc. Record a macro while doing it to
one sheet and look at how Excel set up that section and copy it into the code
above.

To put this code into action: Open the workbook. Press [Alt]+[F11] to open
the VB Editor, choose Insert | Module in the VB Editor and copy and paste
that code into it. Modify the code as needed for your footer setup.

"KC" wrote:

How do I change all the footers in a workbook without changing the page set
up? When I try to change via view header/footer it still changes the page
lay out on all the worksheets!

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
changing print borders hawaiiguy2 Excel Worksheet Functions 1 June 22nd 07 01:30 PM
Changing a Link Mid-way Across Worksheets Frosty Excel Worksheet Functions 0 August 25th 05 12:03 AM
Changing print settings permanently woodjm Excel Discussion (Misc queries) 1 August 22nd 05 06:23 PM
Changing print area Aaron Excel Discussion (Misc queries) 2 January 9th 05 05:58 PM
Macro for changing print settings Bill Excel Discussion (Misc queries) 3 December 3rd 04 10:49 PM


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

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"