Home |
Search |
Today's Posts |
|
#1
![]() |
|||
|
|||
![]()
I would like to place a formula in the Header/footer area so that I can pull
info from one changing cell to the header/footer. Is this possible and if so how? Thanks in advance to all that reply |
#2
![]() |
|||
|
|||
![]()
You can set the header/footer to reference the value of a cell that contains
your formula. For example: Sub Test() Dim rFormulaCell As Range Set rFormulaCell = ActiveSheet.[D1] '<-- change cell With ActiveSheet .PageSetup.CenterHeader = rFormulaCell .PrintOut Copies:=1, Collate:=True End With End Sub --- HTH Jason Atlanta, GA "john mcmichael" wrote: I would like to place a formula in the Header/footer area so that I can pull info from one changing cell to the header/footer. Is this possible and if so how? Thanks in advance to all that reply |
#3
![]() |
|||
|
|||
![]()
It works great. On another note, I tried to put more flexibility by using
named range instead of actual cell reference. However, I got error 438 and 424. Can it work with named range? Thanks. James "Jason Morin" wrote: You can set the header/footer to reference the value of a cell that contains your formula. For example: Sub Test() Dim rFormulaCell As Range Set rFormulaCell = ActiveSheet.[D1] '<-- change cell With ActiveSheet .PageSetup.CenterHeader = rFormulaCell .PrintOut Copies:=1, Collate:=True End With End Sub --- HTH Jason Atlanta, GA "john mcmichael" wrote: I would like to place a formula in the Header/footer area so that I can pull info from one changing cell to the header/footer. Is this possible and if so how? Thanks in advance to all that reply |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Maintaining cell reference after sorting | Excel Discussion (Misc queries) | |||
Cell Reference in Header | Excel Discussion (Misc queries) | |||
How to reference a text cell that changes weekly in Header or Foo. | Excel Discussion (Misc queries) | |||
Cell Reference Math | Excel Worksheet Functions | |||
Place a set value in a cell from a drop down list name reference | Excel Worksheet Functions |