![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
Hello all,
Does anybody know if it is possible to put cell values in a footer? For example: I need the value of cell A1 of Sheet1 to appear in a footer. In regular sheets you just use =Sheet1!A1 . But such constructions do need work in the footer/header. Anyone? A solution? Thanks in advance!!! Raymond |
|
|
|
|
|
#2 |
|
Banned
Join Date: Feb 2002
Posts: 1,582
|
Hi Raymond
Right click on the Excel icon, top left next to file and select "View Code", paste in this. Private Sub Workbook_BeforePrint(Cancel As Boolean) If Me.ActiveSheet.Name = "Sheet1" Then Me.ActiveSheet.PageSetup.LeftFooter = Range("A1") End If End Sub |
|
|
|
|
|
#3 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
Thanks Dave! It works only for one sheet (Sheet1) like this, but I have the clue how to work with it ... thank you very much!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|