Is it possible to have a formula in a header/footer or is it just for text? Thanks!
L Lo456 Mar 16, 2009 #1 Is it possible to have a formula in a header/footer or is it just for text? Thanks!
G Gord Dibben Mar 16, 2009 #2 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
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
S Shane Devenshire Mar 16, 2009 #3 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
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
L Lo456 Mar 16, 2009 #4 Thanks!!! Gord Dibben said: 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 Click to expand...
Thanks!!! Gord Dibben said: 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 Click to expand...