LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 425
Default Fully fit each page to one page?


After setting the page(s), I would like to automatically change the
fit to to each page to whatever setting will give me the best
printout. When this prints now, it prints too small. I dont want to
limit the total number of pages to only one (as the range may be 10
lines, or 1000 lines), but fully fit each page to one page .



This code works for me (searches for the data and prints it out on
several pages if I need, or one if there's not a lot of data). Just
need to print a little larger.


Sub SetPrtAr_MLS_setup()
Dim lLastRow As Long
lLastRow = Range("I65536:K65536").End(xlUp).Row
Orientation = xlLandscape
ActiveSheet.PageSetup.PrintArea = Range("a6:N" & lLastRow).Address
End Sub


 
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
Format page number in excel footer to start at a specific page # straitctrydncr Excel Discussion (Misc queries) 4 April 28th 23 07:45 PM
Page not fully printing... Patrick Excel Discussion (Misc queries) 2 January 1st 10 01:52 PM
save page ,clear page, reuse same page dave Excel Programming 1 June 6th 07 06:01 AM
change and/or remove page number watermark in page break preview juga Excel Discussion (Misc queries) 2 December 25th 06 10:15 AM
excel fit to 1 page shows 1 page but not all data is on that page Jans Excel Programming 1 September 2nd 04 01:49 AM


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