View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Yogesh Gupta Yogesh Gupta is offline
external usenet poster
 
Posts: 8
Default Macro for Page Setup - Fit to one page

I am using following macro to print fit to one page. But it is not happening
and print is actually running on two pages.

With ActiveSheet.PageSetup
.PrintTitleRows = ""
.PrintTitleColumns = ""
.Orientation = xlLandscape
.LeftFooter = "Left Footer text: "
.RightFooter = "Right Footer Text: "
.FitToPagesWide = 1
.FitToPagesTall = 1
End With

Can any one help me understand the reason why I am not able to get print fit
to single page and what change do I need to make to my code.



--
Yogesh Gupta