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 Adding "fit to" into current print code

I have a code that works perfectly except the image prints too small.
I have figured out the trick to change the size of the printout, but
need to implement this in my current procedure. I tried just dropping
it in but it didnt quite work, so either I am putting it in the wrong
place, or I need some additional code somewhere.


My current code:

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


Piece I need added:

..FitToPagesWide = 1
..FitToPagesTall = 999


Thanx.
 
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
Help neededin adding an additional "Warning Flag" to my current lo Danny Boy Excel Worksheet Functions 1 June 10th 09 02:50 PM
Functions for "current" & "previous" month to calculate data Priss Excel Worksheet Functions 11 April 15th 08 06:24 PM
Set "Print entire Workbook" property from interop code Oliver Excel Programming 4 May 7th 07 09:08 AM
Finding the current "print range" Alex T Excel Programming 1 September 2nd 04 01:38 PM
What are the System Tables named "Print Area" & "Print Titles"? Tom Ogilvy Excel Programming 1 August 18th 03 05:38 PM


All times are GMT +1. The time now is 10:40 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"