This is a macro to be run by hitting a button or shortcut key.
If not familiar with VBA and macros, see David McRitchie's site for more on
"getting started".
http://www.mvps.org/dmcritchie/excel/getstarted.htm
In the meantime..........
First...create a backup copy of your original workbook.
To create a General Module, hit ALT + F11 to open the Visual Basic Editor.
Hit CRTL + R to open Project Explorer.
Find your workbook/project by name and select it.
Right-click and Insert>Module. Paste the code in there. Save the
workbook and hit ALT + Q to return to your workbook.
Run the macro by going to Tool>Macro>Macros.
You can also assign this macro to a button or a shortcut key combo.
An alternative to running the macro manually is to run it whenever you hit the
Print command.
Instead of pasting the code into a General Module, double-click on the
Thisworkbook module when in the VBE
Paste this code into that module.............
Private Sub Workbook_BeforePrint(Cancel As Boolean)
With ActiveSheet
.PageSetup.CenterFooter = .Range("A1").Text
End With
End Sub
Will run whenever you print.
Gord Dibben MS Excel MVP
On Fri, 14 Jul 2006 08:05:02 -0700, Footers and Cell references
<(E-Mail Removed)> wrote:
>Gordon,
>Thanks for the advise, having never used code before, I presume I have to go
>into
>Alt+Shift+F11.
>When I seach search for Footer I found the followng line. I have attempted
>to change it but the code does not appear to work. Can you advise what I am
>doing wrong please?
>
>{mso-footer-data:"&LSub CellInFooter\(\)\000A With ActiveSheet\000A
> \PageSetup\CenterFooter = \Range("C5").text\ End Sub&C&D&RPage &P";}
>table
>
>Thanks
>Richard
>
>
>"Gord Dibben" wrote:
>
>> Sub CellInFooter()
>> With ActiveSheet
>> .PageSetup.CenterFooter = .Range("A1").text
>> End With
>> End Sub
>>
>>
>> Gord Dibben MS Excel MVP
>>
>>
>>
>> On Thu, 13 Jul 2006 09:03:02 -0700, Footers and Cell references <Footers and
>> Cell (E-Mail Removed)> wrote:
>>
>> >Attempting to print some reports from a Pivot Table and should like to use a
>> >cell value as a footer. Is it possible to quote a cell value in the Footers?
>>
>>
Gord Dibben MS Excel MVP