Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Header/Footer Formula?

Is it possible to have a formula in a header/footer or is it just for text?
Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Header/Footer Formula?

Text only but via VBA you can write the results of a formula to the
Header/Footer

Sub CellInFooter()
With ActiveSheet
.PageSetup.CenterFooter = .Range("A1").Value
End With
End Sub

Where A1 contains a formula.


Gord Dibben MS Excel MVP

On Mon, 16 Mar 2009 12:39:03 -0700, Lo456
wrote:

Is it possible to have a formula in a header/footer or is it just for text?
Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 857
Default Header/Footer Formula?

Hi,

Just text. However, you can use a Workbook_BeforePrint() procedure to do a
calculation and put it in the Header or Footer:

Private Sub Workbook_BeforePrint(Cancel As Boolean)
'your calculation code here
End Sub

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Lo456" wrote:

Is it possible to have a formula in a header/footer or is it just for text?
Thanks!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Header/Footer Formula?

Thanks!!!

"Gord Dibben" wrote:

Text only but via VBA you can write the results of a formula to the
Header/Footer

Sub CellInFooter()
With ActiveSheet
.PageSetup.CenterFooter = .Range("A1").Value
End With
End Sub

Where A1 contains a formula.


Gord Dibben MS Excel MVP

On Mon, 16 Mar 2009 12:39:03 -0700, Lo456
wrote:

Is it possible to have a formula in a header/footer or is it just for text?
Thanks!



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
header footer CW Excel Discussion (Misc queries) 3 July 17th 09 12:10 AM
Header/Footer VirginiaKim Excel Discussion (Misc queries) 2 June 20th 08 09:21 PM
Date formula for footer/header Kurtlee Excel Discussion (Misc queries) 1 November 4th 05 05:01 PM
Can I place a formula/cell reference in the Header/footer Excel john mcmichael Excel Worksheet Functions 2 August 11th 05 09:10 PM
Formula for Last Saved on outside of Header/Footer Kempster Excel Worksheet Functions 1 August 4th 05 03:38 PM


All times are GMT +1. The time now is 06:47 AM.

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"