Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
In Excel is it possible to put a cell referenc in a header or footer?
|
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Paddy
With the use of VBA, yes. Sub CellInFooter() With ActiveSheet .PageSetup.CenterFooter = .Range("A1").text End With End Sub Gord Dibben Excel MVP On Thu, 15 Dec 2005 21:08:03 -0800, "Paddy" wrote: In Excel is it possible to put a cell referenc in a header or footer? |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Via code? Yes.
You can use the workbook_beforeprint event to modify the header. Option Explicit Private Sub Workbook_BeforePrint(Cancel As Boolean) With Me.Worksheets("sheet1") .PageSetup.CenterFooter = .Range("a1").Text End With End Sub This goes behind the ThisWorkbook module. If you're new to macros, you may want to read David McRitchie's intro at: http://www.mvps.org/dmcritchie/excel/getstarted.htm Paddy wrote: In Excel is it possible to put a cell referenc in a header or footer? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Excel 2003 FAILS, but Excel 2000 SUCCEEDS ??? | Excel Discussion (Misc queries) | |||
Maintaining cell reference after sorting | Excel Discussion (Misc queries) | |||
TRYING TO SET UP EXCEL SPREADSHEET ON MY COMPUTER | New Users to Excel | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions | |||
Enter an Excel cell reference as part of a custom header/footer | Excel Worksheet Functions |