Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am using the following code to print out a worksheet on a landscaped
page. I want all the columns to fit across the width of one page; rows can slip onto the next page. In my code, I set FitToPagesWide = 1, but it doesn't do what I think it should. What am I dong wrong? Ed ' Prints Sheet2 list Set rngWork = wks2.UsedRange With wks2.PageSetup .Orientation = xlLandscape .TopMargin = Application.InchesToPoints(1) .BottomMargin = Application.InchesToPoints(1) .LeftMargin = Application.InchesToPoints(0.5) .RightMargin = Application.InchesToPoints(0.5) .PrintArea = rngWork.Address .FitToPagesWide = 1 .CenterHeader = "&D" .CenterFooter = "Page &P of &N" .PrintTitleRows = wks2.Rows(1).Address End With wks2.PrintOut |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Setting the print area in page set up to print 1 page wide by 2 pages tall | Excel Discussion (Misc queries) | |||
Page Setup Not Fitting To One Page Wide | Excel Programming | |||
Problem Scaling to 1 Page Wide | Excel Discussion (Misc queries) | |||
Printing: Best Fit (1 Page Wide) | Excel Programming | |||
Page Header with Fit to 1 page wide | Excel Programming |