Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Help with PageSetup for printing, please?

(XL2003) I'm trying to get this to adjust so it fills a landscape page
left margin to right margin. I do't care how many pages the rows
cover. Right now, the rows cover three pages.

The first time, the page formatted with A:L for three pages, then M:P
for three more pages. So I added .FitToPagesWide = 1. Now it put
everything scrunched on ONE page! Well, yeah, I guess that _is_ what
I told it to do, come to think of it!! 8(

But it's not what I want. How can I make this figure out how to fit
across the width?

Ed

With wks3.PageSetup
.TopMargin = Application.InchesToPoints(0)
.BottomMargin = Application.InchesToPoints(0)
.LeftMargin = Application.InchesToPoints(0)
.RightMargin = Application.InchesToPoints(0)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
.CenterHorizontally = True
.Orientation = xlLandscape
.PrintArea = "$A$1:$P$" & x
.PrintTitleRows = "$1:$3"
.Zoom = False
.FitToPagesWide = 1
.BlackAndWhite = False
End With
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default Help with PageSetup for printing, please?

Try
.FitToPagesWide = 1
.FitToPagesTall = False


"Ed from AZ" wrote:

(XL2003) I'm trying to get this to adjust so it fills a landscape page
left margin to right margin. I do't care how many pages the rows
cover. Right now, the rows cover three pages.

The first time, the page formatted with A:L for three pages, then M:P
for three more pages. So I added .FitToPagesWide = 1. Now it put
everything scrunched on ONE page! Well, yeah, I guess that _is_ what
I told it to do, come to think of it!! 8(

But it's not what I want. How can I make this figure out how to fit
across the width?

Ed

With wks3.PageSetup
.TopMargin = Application.InchesToPoints(0)
.BottomMargin = Application.InchesToPoints(0)
.LeftMargin = Application.InchesToPoints(0)
.RightMargin = Application.InchesToPoints(0)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
.CenterHorizontally = True
.Orientation = xlLandscape
.PrintArea = "$A$1:$P$" & x
.PrintTitleRows = "$1:$3"
.Zoom = False
.FitToPagesWide = 1
.BlackAndWhite = False
End With

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 120
Default Help with PageSetup for printing, please?

That did it!! Thank you!!

Ed


On Mar 27, 2:08*pm, MacGuy wrote:
Try
* * * * .FitToPagesWide = 1
* * * * .FitToPagesTall = False



"Ed from AZ" wrote:
(XL2003) I'm trying to get this to adjust so it fills a landscape page
left margin to right margin. *I do't care how many pages the rows
cover. *Right now, the rows cover three pages.


The first time, the page formatted with A:L for three pages, then M:P
for three more pages. *So I added .FitToPagesWide = 1. *Now it put
everything scrunched on ONE page! *Well, yeah, I guess that _is_ what
I told it to do, come to think of it!! *8(


But it's not what I want. *How can I make this figure out how to fit
across the width?


Ed


With wks3.PageSetup
* .TopMargin = Application.InchesToPoints(0)
* .BottomMargin = Application.InchesToPoints(0)
* .LeftMargin = Application.InchesToPoints(0)
* .RightMargin = Application.InchesToPoints(0)
* .HeaderMargin = Application.InchesToPoints(0.5)
* .FooterMargin = Application.InchesToPoints(0.5)
* .CenterHorizontally = True
* .Orientation = xlLandscape
* .PrintArea = "$A$1:$P$" & x
* .PrintTitleRows = "$1:$3"
* .Zoom = False
* .FitToPagesWide = 1
* .BlackAndWhite = False
End With- Hide quoted text -


- Show quoted text -


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
PageSetup Fred Excel Programming 1 November 29th 07 01:13 PM
PageSetup Stanley Excel Discussion (Misc queries) 1 December 14th 05 07:21 PM
PageSetup Simon Shaw Excel Programming 3 May 28th 05 01:28 PM
PageSetup Simon Shaw[_4_] Excel Programming 1 May 28th 04 08:41 AM
Problem with PageSetup & Printing Mike H[_7_] Excel Programming 0 January 26th 04 08:21 PM


All times are GMT +1. The time now is 01:53 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"