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: 1
Default Fit to page macro


I am tring to print a range on 1 page

This code prints the correct range, except it prints it over 4 pages.

Sub PrintMacro905()
Dim rPrintRange As Range
Dim PrintSheetName As String
Set pshtSheet2 = Sheet2
Set rPrintRange = Range("A1", "N85")
With pshtSheet2.PageSetup
..PrintArea = rPrintRange.Address
..FitToPagesTall = 1
..FitToPagesWide = 1
End With
pshtSheet2.PrintOut
End Sub

Any ideas would be appreciated.


--
kixelsid
------------------------------------------------------------------------
kixelsid's Profile: http://www.excelforum.com/member.php...o&userid=31901
View this thread: http://www.excelforum.com/showthread...hreadid=555112

 
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
Page break or Fit to Page Macro wigs Excel Worksheet Functions 0 March 31st 09 09:34 PM
Page macro user Excel Discussion (Misc queries) 2 March 18th 09 09:36 PM
What does &L& mean in a page setup macro? Bonnie June Excel Worksheet Functions 1 July 26th 06 11:29 PM
Macro that copy page to page just some filled cells LC Excel Discussion (Misc queries) 0 May 13th 05 11:22 PM
Fit to page in macro Stevenumber50 Excel Programming 4 August 4th 04 08:33 PM


All times are GMT +1. The time now is 04:29 AM.

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"