Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
I have a simple macro in Excel 97: Sub PrintFormat() With ActiveSheet.PageSetup .LeftFooter = "&D&T" .CenterFooter = "&A" .RightFooter = "&F" .PrintGridlines = True .PaperSize = xlPaperA4 .FitToPagesWide = 1 .FitToPagesTall = 1 End With End Sub I run this from any worksheet page without selecting a particular block of cells. The FitToPages instructions at the end don't work. I intend to be fitting the entire worksheet contents into an A4 page, as would happen if I set these options manually in page setup. I have a feeling I need to specify the area of the worksheet in which there is data to print. Am I right? How would I do that? Advice gratefully received Steve |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Page break or Fit to Page Macro | Excel Worksheet Functions | |||
Page macro | Excel Discussion (Misc queries) | |||
How to open a web page through macro? | Excel Discussion (Misc queries) | |||
Macro that copy page to page just some filled cells | Excel Discussion (Misc queries) | |||
How to run a macro in word web page | Excel Programming |