Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.newusers
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Headers/Footers | Excel Worksheet Functions | |||
Help with Headers and Footers | Excel Discussion (Misc queries) | |||
Headers and Footers | Excel Discussion (Misc queries) | |||
Headers and Footers in VBA | Excel Discussion (Misc queries) | |||
headers and footers | Excel Discussion (Misc queries) |