Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 28
Default How do I copy a custom footer to other sheets

I have set up a custom footer with several items in and need to do the same
to lots of other spreadsheets. It would be great if I could copy the footer,
paste it in another worksheet and just amend minor details. Can this be done?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default How do I copy a custom footer to other sheets

This little macro will copy the footers from the activesheet and paste it to
the other sheets in the workbook:

Sub FooterFixer()
Dim s1 As String, s2 As String, s3 As String
Dim sh As Worksheet
With ActiveSheet.PageSetup
s1 = .LeftFooter
s2 = .CenterFooter
s3 = .RightFooter
End With
For Each sh In Worksheets
sh.Activate
With ActiveSheet.PageSetup
.LeftFooter = s1
.CenterFooter = s2
.RightFooter = s3
End With
Next
End Sub

Macros are very easy to install and use:

1. ALT-F11 brings up the VBE window
2. ALT-I
ALT-M opens a fresh module
3. paste the stuff in and close the VBE window

If you save the workbook, the macro will be saved with it.

To remove the macro:

1. bring up the VBE window as above
2. clear the code out
3. close the VBE window

To use the macro from Excel:

1. ALT-F8
2. Select the macro
3. Touch RUN

To learn more about macros in general, see:

http://www.mvps.org/dmcritchie/excel/getstarted.htm

--
Gary''s Student - gsnu201003


"AndyB" wrote:

I have set up a custom footer with several items in and need to do the same
to lots of other spreadsheets. It would be great if I could copy the footer,
paste it in another worksheet and just amend minor details. Can this be done?

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
Custom Footer James C[_2_] Excel Discussion (Misc queries) 2 March 31st 10 01:27 PM
Copy custom footer across multiple sheets Clark Excel Worksheet Functions 3 August 6th 08 03:59 PM
How get the same custom footer on all sheets of workbk w/o copy/pa Laurie Excel Discussion (Misc queries) 1 April 12th 06 07:52 PM
in VBA Sheets("mysheet").Copy Befo=Sheets(1) how do i get a reference to the newly created copy of this sheet? Daniel Excel Worksheet Functions 1 July 6th 05 09:57 PM
Custom footer Chrissy New Users to Excel 2 December 3rd 04 09:01 PM


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

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

About Us

"It's about Microsoft Excel"