custom Header & Footer

L

Legacy 68581

Guest
Hello,
Is there a way to create customized lists in the Headers and Footers?
I am using the same text in many different files, and wish I did not need to type it each time. Any ideas?
Thanks,
nm
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
If it helps, I'd probably run with either of these two approaches:

1) Just make a quick .xlt file with my customized headers/footers in place. (Then I'd use that file on future workfiles that need that standard).

2) Go to Tools/Macros/Record New Macro and record a macro in your Personal.xls file of you changing the headers and footers. Later you can just activate that code to apply the headers/footers.

Here's a tweaking/cleanup of that code as an example:

Code:
Sub Custom_headerfooters()

Application.ScreenUpdating = False
  
    With ActiveSheet.PageSetup
        .LeftHeader = "&N"
        .CenterHeader = "This is my header"
        .RightHeader = "yep"
        .LeftFooter = "customlefty"
        .CenterFooter = "mycustomfooter"
        .RightFooter = "aye"
    End With
    
Application.ScreenUpdating = True
End Sub

(Obviously adjusting what you want in the left/right/center values for what you actually want)
Hope that helps
 
Upvote 0
Hi Alasa42,
Thank you for that! I'll use option 2 until they make it possible to customize the drop-down lists...
Cheers,
nm
 
Upvote 0

Forum statistics

Threads
1,214,540
Messages
6,120,107
Members
448,945
Latest member
Vmanchoppy

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