how to fix default font size for header & footer while print even zoom size changing

Joined
Mar 23, 2011
Messages
1
Hi Sir
I have more than twently sheets in my excel file. Each sheets are different zoom size for printing purpose.
The header & footer font size is varying while printing.

How to fix default header & footer font size while printing (whether zoom size 100% or 20% etc)

The header footer font size should not change while print for all the pages

This is my coding. I dont know whether is correct or not. Please can u send correct coding.

Sub ZoomFontSize()
With ActiveSheet.PageSetup
.Orientation = xlLandscape
.LeftMargin = Application.InchesToPoints(0.47244094488189)
.RightMargin = Application.InchesToPoints(0.196850393700787)
.TopMargin = Application.InchesToPoints(0.15748031496063)
.BottomMargin = Application.InchesToPoints(0.15748031496063)
.HeaderMargin = Application.InchesToPoints(0.15748031496063)
.FooterMargin = Application.InchesToPoints(0.15748031496063)
End With
Select Case ActiveSheet.PageSetup.Zoom
Case 1 To 100
ActiveSheet.PageSetup.LeftHeader = "&""Arial""&12" & "Worksheet: &A"
ActiveSheet.PageSetup.LeftFooter = "&""Arial""&12" & ThisWorkbook.FullName & Chr(10) & " " & Chr(10) & " "
ActiveSheet.PageSetup.CenterFooter = "&""Arial""&12" & "Page &P of &N"
ActiveSheet.PageSetup.RightFooter = "&""Arial""&12" & "Print Date: &D"
End Select
End Sub



Thanks & Rgrds
Saravanan Srinivasan
 
Last edited:

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.

Forum statistics

Threads
1,224,560
Messages
6,179,520
Members
452,923
Latest member
JackiG

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