Cell values in Footer

Raymond

New Member
Joined
Apr 8, 2002
Messages
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
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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
 
Upvote 0
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!
 
Upvote 0

Forum statistics

Threads
1,215,129
Messages
6,123,216
Members
449,091
Latest member
jeremy_bp001

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top