Footer

  • Thread starter Thread starter Fuzzy
  • Start date Start date
F

Fuzzy

In Excel I have many tabs and each one of those workbooks I have the date in
the footer. I want to have all the dates tied together so I tried entering a
formula like =Tests!A104 where Tests is a tab and in A104 I entered 5
November 2008. This is not working for me. How do I get all the Dates in the
footers to be the same as a date that I choose?
 
I believe the only way is to use VBA using code similar to the following;

Private Sub Workbook_BeforePrint(Cancel As Boolean)
ActiveSheet.PageSetup.LeftFooter = Range("a1").Value
End Sub

OR

Sub UpdateHeader()
ActiveSheet.PageSetup.Leftheader = Range("A1").Value
End Sub

See http://support.microsoft.com/kb/273028
 
For footers on all sheets...............

Sub Cell_In_AllFooters()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Sheets
ws.PageSetup.CenterFooter = Sheets("Tests").Range("A104").Value
Next
End Sub


Gord Dibben MS Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top