Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2007

Tip: Looking for answers? Try searching our database.

Formulae in headers or footers

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Lee - 08 Oct 2007 18:41 GMT
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,
Signature

Lee Coleman

Bob Umlas, Excel MVP - 08 Oct 2007 19:57 GMT
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

> 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 - 08 Oct 2007 20:03 GMT
Thanks, I don't know anything about VBA but I will try the cut and paste
thing.
Thanks again,
Lee
> You need VBA code to do that. If your data is in D1:D100, this will do as
> an
[quoted text clipped - 14 lines]
>> that says you can or can't. If you can, then how?
>> Thanks,

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.