Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Nav Nav is offline
external usenet poster
 
Posts: 43
Default Headers and Footers by VBA?

Hello

I am using Office 2003, and have headers and footers on some 40 sheets (not
the 1st sheet and not the last sheet) that are all the same (and some 40
files that each have their own headers/footers). However as each of these
sheets is set to print on page 1 of 1 the print area is different for each
one.

As the print area is different the size of the headers and footers keep
changing. Is there a way to fix the font and size etc.. so regardless of the
print area size the headers and footers all remain the same size, either via
VBA or using the settings in Excel.

Please note that letter heads are not an option, and the footer page x of x
would still need to be fixed in size.

Any help appreciated.

Thank you and regards,
Nav

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Headers and Footers by VBA?

AFIK, you just have to leave enough margin on your print area to allow for
the headers and/or footers. That is controlled in your page set up, which
can be done manually or by code. Check the help files for details.

"Nav" wrote:

Hello

I am using Office 2003, and have headers and footers on some 40 sheets (not
the 1st sheet and not the last sheet) that are all the same (and some 40
files that each have their own headers/footers). However as each of these
sheets is set to print on page 1 of 1 the print area is different for each
one.

As the print area is different the size of the headers and footers keep
changing. Is there a way to fix the font and size etc.. so regardless of the
print area size the headers and footers all remain the same size, either via
VBA or using the settings in Excel.

Please note that letter heads are not an option, and the footer page x of x
would still need to be fixed in size.

Any help appreciated.

Thank you and regards,
Nav

  #3   Report Post  
Posted to microsoft.public.excel.programming
Nav Nav is offline
external usenet poster
 
Posts: 43
Default Headers and Footers by VBA?

Hello

Thank you for your reponse but maybe I wasn't totally clear. By adjusting
the margins it is possible to place the Header/Footer in the same location at
all times. However when you select a different sized print area to print 1
page wide by 1 page - depending on the amount of information the header and
footer gets re-sized. Is there any way to make sure the header and footer do
NOT resize with the rest of the data?

Regards, Nav

"JLGWhiz" wrote:

AFIK, you just have to leave enough margin on your print area to allow for
the headers and/or footers. That is controlled in your page set up, which
can be done manually or by code. Check the help files for details.

"Nav" wrote:

Hello

I am using Office 2003, and have headers and footers on some 40 sheets (not
the 1st sheet and not the last sheet) that are all the same (and some 40
files that each have their own headers/footers). However as each of these
sheets is set to print on page 1 of 1 the print area is different for each
one.

As the print area is different the size of the headers and footers keep
changing. Is there a way to fix the font and size etc.. so regardless of the
print area size the headers and footers all remain the same size, either via
VBA or using the settings in Excel.

Please note that letter heads are not an option, and the footer page x of x
would still need to be fixed in size.

Any help appreciated.

Thank you and regards,
Nav

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default Headers and Footers by VBA?

I believe that when it zooms for fit to page, it zooms evetything
proportionately. One way around that is to specifically size the print areat
with font size but there might be drawbacks to that.




"Nav" wrote:

Hello

Thank you for your reponse but maybe I wasn't totally clear. By adjusting
the margins it is possible to place the Header/Footer in the same location at
all times. However when you select a different sized print area to print 1
page wide by 1 page - depending on the amount of information the header and
footer gets re-sized. Is there any way to make sure the header and footer do
NOT resize with the rest of the data?

Regards, Nav

"JLGWhiz" wrote:

AFIK, you just have to leave enough margin on your print area to allow for
the headers and/or footers. That is controlled in your page set up, which
can be done manually or by code. Check the help files for details.

"Nav" wrote:

Hello

I am using Office 2003, and have headers and footers on some 40 sheets (not
the 1st sheet and not the last sheet) that are all the same (and some 40
files that each have their own headers/footers). However as each of these
sheets is set to print on page 1 of 1 the print area is different for each
one.

As the print area is different the size of the headers and footers keep
changing. Is there a way to fix the font and size etc.. so regardless of the
print area size the headers and footers all remain the same size, either via
VBA or using the settings in Excel.

Please note that letter heads are not an option, and the footer page x of x
would still need to be fixed in size.

Any help appreciated.

Thank you and regards,
Nav

  #5   Report Post  
Posted to microsoft.public.excel.programming
Nav Nav is offline
external usenet poster
 
Posts: 43
Default Headers and Footers by VBA?

Hi

Is it not possible to do some form of VBA coding so that the Zoom factor for
the header and footer always = 100%?


"JLGWhiz" wrote:

I believe that when it zooms for fit to page, it zooms evetything
proportionately. One way around that is to specifically size the print areat
with font size but there might be drawbacks to that.




"Nav" wrote:

Hello

Thank you for your reponse but maybe I wasn't totally clear. By adjusting
the margins it is possible to place the Header/Footer in the same location at
all times. However when you select a different sized print area to print 1
page wide by 1 page - depending on the amount of information the header and
footer gets re-sized. Is there any way to make sure the header and footer do
NOT resize with the rest of the data?

Regards, Nav

"JLGWhiz" wrote:

AFIK, you just have to leave enough margin on your print area to allow for
the headers and/or footers. That is controlled in your page set up, which
can be done manually or by code. Check the help files for details.

"Nav" wrote:

Hello

I am using Office 2003, and have headers and footers on some 40 sheets (not
the 1st sheet and not the last sheet) that are all the same (and some 40
files that each have their own headers/footers). However as each of these
sheets is set to print on page 1 of 1 the print area is different for each
one.

As the print area is different the size of the headers and footers keep
changing. Is there a way to fix the font and size etc.. so regardless of the
print area size the headers and footers all remain the same size, either via
VBA or using the settings in Excel.

Please note that letter heads are not an option, and the footer page x of x
would still need to be fixed in size.

Any help appreciated.

Thank you and regards,
Nav



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Headers and Footers by VBA?

Nav

Set the footer fontsize via VBA

Sub Footer22()
With ActiveSheet.PageSetup
.RightFooter = "&""Algerian,Regular""&18" & "myfooter"
End With
End Sub

Will be independent of page zoom size.


Gord Dibben MS Excel MVP

On Wed, 26 Nov 2008 09:56:01 -0800, Nav
wrote:

Hi

Is it not possible to do some form of VBA coding so that the Zoom factor for
the header and footer always = 100%?


"JLGWhiz" wrote:

I believe that when it zooms for fit to page, it zooms evetything
proportionately. One way around that is to specifically size the print areat
with font size but there might be drawbacks to that.




"Nav" wrote:

Hello

Thank you for your reponse but maybe I wasn't totally clear. By adjusting
the margins it is possible to place the Header/Footer in the same location at
all times. However when you select a different sized print area to print 1
page wide by 1 page - depending on the amount of information the header and
footer gets re-sized. Is there any way to make sure the header and footer do
NOT resize with the rest of the data?

Regards, Nav

"JLGWhiz" wrote:

AFIK, you just have to leave enough margin on your print area to allow for
the headers and/or footers. That is controlled in your page set up, which
can be done manually or by code. Check the help files for details.

"Nav" wrote:

Hello

I am using Office 2003, and have headers and footers on some 40 sheets (not
the 1st sheet and not the last sheet) that are all the same (and some 40
files that each have their own headers/footers). However as each of these
sheets is set to print on page 1 of 1 the print area is different for each
one.

As the print area is different the size of the headers and footers keep
changing. Is there a way to fix the font and size etc.. so regardless of the
print area size the headers and footers all remain the same size, either via
VBA or using the settings in Excel.

Please note that letter heads are not an option, and the footer page x of x
would still need to be fixed in size.

Any help appreciated.

Thank you and regards,
Nav


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
headers and footers sweetmadness Excel Discussion (Misc queries) 2 October 26th 08 11:29 PM
Headers & Footers Liz F Excel Worksheet Functions 3 October 3rd 08 12:54 AM
headers and footers DouglasLakeButler Excel Discussion (Misc queries) 2 October 31st 07 03:15 PM
Headers and Footers metaltecks Excel Discussion (Misc queries) 3 February 15th 07 08:27 PM
Headers & footers Darren M Excel Discussion (Misc queries) 3 March 7th 06 02:35 PM


All times are GMT +1. The time now is 12:46 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"