Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
insert cell contents into page header
I would like to be able to insert the contents of a cell into the Page Header
with a dynamic link back to the cell so that when the contents of the cell change, the header will change. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
insert cell contents into page header
Hi
not possible without VBA. You have to use the BeforePrint event of your workbook. So try putting the following type of code in your workbook module 'ThisWorkbook' (don't put it in a standard module): Private Sub Workbook_BeforePrint(Cancel As Boolean) Dim wkSht As Worksheet For Each wkSht In Me.Worksheets With wkSht.PageSetup .CenterHeader = wkSht.range("A1").value End With Next wkSht End Sub -- Regards Frank Kabel Frankfurt, Germany "ScottyV" schrieb im Newsbeitrag ... I would like to be able to insert the contents of a cell into the Page Header with a dynamic link back to the cell so that when the contents of the cell change, the header will change. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How could I display an excel cell contents in a page header ? | Excel Worksheet Functions | |||
Link page header with cell contents | Excel Worksheet Functions | |||
How do I enter the contents of a cell into a page header | Excel Discussion (Misc queries) | |||
excel - insert cell contents in a custom header / footer | Excel Discussion (Misc queries) | |||
Insert cell contents into header/footer | Excel Discussion (Misc queries) |