have can i get tre result of a cell in the header or footer

bossclaus

New Member
Joined
Jan 20, 2010
Messages
30
hi

i need to make a sheet where the footer inludes the result if a cell

='Front page'!B15 , can i do it?

claus
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
For example

Code:
Sub UpdateFooter()
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
   ws.PageSetup.LeftFooter = ws.Range("A1").Value
Next ws
End Sub

If you add new sheets you will need to run the code again.
 
Upvote 0
Try like this in the ThisWorkbook module

Code:
Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
Dim ws As Worksheet
If MsgBox("Update footers", vbYesNo + vbQuestion) = vbNo Then Exit Sub
For Each ws In ActiveWorkbook.Worksheets
   ws.PageSetup.LeftFooter = ws.Range("A1").Value
Next ws
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,592
Messages
6,179,790
Members
452,942
Latest member
VijayNewtoExcel

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