Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
Lee Lee is offline
external usenet poster
 
Posts: 38
Default Formulae in headers or footers

Is it possible to put totals in a header or footer? I haven't seen any place
that says you can or can't. If you can, then how?
Thanks,
--
Lee Coleman


  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 320
Default Formulae in headers or footers

You need VBA code to do that. If your data is in D1:D100, this will do as an
example:
Right-click the Excel LOGO near the file menu, select View Code, paste this
in:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.RightFooter = "Total = " &
Application.Sum(Range("D1:D100"))
End Sub

Bob Umlas
Excel MVP

"Lee" wrote:

Is it possible to put totals in a header or footer? I haven't seen any place
that says you can or can't. If you can, then how?
Thanks,
--
Lee Coleman



  #3   Report Post  
Posted to microsoft.public.excel.newusers
Lee Lee is offline
external usenet poster
 
Posts: 38
Default Formulae in headers or footers

Thanks, I don't know anything about VBA but I will try the cut and paste
thing.
Thanks again,
Lee
"Bob Umlas, Excel MVP" wrote in
message ...
You need VBA code to do that. If your data is in D1:D100, this will do as
an
example:
Right-click the Excel LOGO near the file menu, select View Code, paste
this
in:
Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.RightFooter = "Total = " &
Application.Sum(Range("D1:D100"))
End Sub

Bob Umlas
Excel MVP

"Lee" wrote:

Is it possible to put totals in a header or footer? I haven't seen any
place
that says you can or can't. If you can, then how?
Thanks,
--
Lee Coleman





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
Headers/Footers daisy Excel Worksheet Functions 0 September 13th 07 03:22 PM
Help with Headers and Footers courtney Excel Discussion (Misc queries) 1 June 4th 07 07:46 PM
Headers and Footers metaltecks Excel Discussion (Misc queries) 3 February 15th 07 08:27 PM
Headers and Footers in VBA JacMar Excel Discussion (Misc queries) 4 January 28th 07 07:37 PM
headers and footers Tester Excel Discussion (Misc queries) 2 November 16th 05 12:58 AM


All times are GMT +1. The time now is 12:04 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"