Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Fit Selection to Page

See answer in your other thread Shawn

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Shawn" wrote in message ...
I posted a similar message yesterday but worded it so poorly I thought I
would re-post it. I have a lot of data on a sheet and a code selects part of
it. When the selected part prints out it prints out on multiple sheets. I
don't want to change the entire page setup to fit to pages wide and tall = 1.
I just want the selected area to print out on one page. Here is what I have
tried and it don't work:

Range("A1:N32").Select
With Selection
.FitToPagesWide = 1
.FitToPagesTall = 1
.PrintOut Copies:=1, Collate:=True
End With



--
Thanks
Shawn

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Fit Selection to Page

Here is it again

Try this tester for the selection

I will preview the printout
Delete preview:=True when it is working correct

Sub test()
With ActiveSheet.PageSetup
.PrintArea = Selection.Address
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
.Orientation = xlLandscape
End With
ActiveSheet.PrintOut preview:=True
End Sub


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Ron de Bruin" wrote in message ...
See answer in your other thread Shawn

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Shawn" wrote in message ...
I posted a similar message yesterday but worded it so poorly I thought I
would re-post it. I have a lot of data on a sheet and a code selects part of
it. When the selected part prints out it prints out on multiple sheets. I
don't want to change the entire page setup to fit to pages wide and tall = 1.
I just want the selected area to print out on one page. Here is what I have
tried and it don't work:

Range("A1:N32").Select
With Selection
.FitToPagesWide = 1
.FitToPagesTall = 1
.PrintOut Copies:=1, Collate:=True
End With



--
Thanks
Shawn

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
fit to one page selection creates one page for each cell breadman Excel Discussion (Misc queries) 0 June 1st 07 01:54 PM
How do I get my page selection to print on one page? Stefan in NM Excel Discussion (Misc queries) 1 April 19th 06 07:54 PM
Print selection in one page filo666 Excel Programming 2 November 3rd 05 11:45 PM
Individual Page Selection Chris Shaw[_3_] Excel Programming 1 July 11th 05 08:12 PM
Page Selection Sagaron[_3_] Excel Programming 3 June 26th 05 07:17 PM


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

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"