PC Review


Reply
Thread Tools Rate Thread

Change page orientation to suit selection

 
 
Liz
Guest
Posts: n/a
 
      17th Nov 2009
I have a macro to quickly print the selection. In order to get the maximum
sized print, I would like to change page orientation to maximise it. Is
there any way to find the size of the selection so I can get the height /
width ratio?


 
Reply With Quote
 
 
 
 
JLGWhiz
Guest
Posts: n/a
 
      17th Nov 2009
You might not have ever noticed, but the row height and column width in
Excel are not measured to the same standard. Don't ask me why, because I
don't know other than two different people came up with the idea of how to
measure them. The standard row height is 12.75 and the standard column
width is 8.43, yet when you look at the worksheet, it is obvious that the
standard width is much greater than the standard height. So trying to
calculate the ratio of the height to width of a range would require some
tricky math. You could try to convert to pixels, but I do not know how to
tell you where to begin in doing that.
The other problem is that since the height and width of rows and columns can
vary based on content, there is no way to accurately compute those
variations.

My solution to such a dilemma would be to design my project so that I know
in advance when I need to change orientation and to build that into my
original plan.



"Liz" <(E-Mail Removed)> wrote in message
news:89A565A0-100A-4959-8F58-(E-Mail Removed)...
>I have a macro to quickly print the selection. In order to get the maximum
> sized print, I would like to change page orientation to maximise it. Is
> there any way to find the size of the selection so I can get the height /
> width ratio?
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the location and ORIENTATION of the page number ontwo LANDSCAPE pages the middle of a 100 page document ? Yabahoobs Microsoft Word Document Management 2 29th Sep 2008 10:08 PM
how do i get each page sub-title to change to suit the page =?Utf-8?B?ZG9uYWxk?= Microsoft Frontpage 1 3rd Feb 2007 08:34 PM
Change page orientation using VBA =?Utf-8?B?U2F1cm9u?= Microsoft Word Document Management 1 9th Jul 2004 01:06 PM
A change to page Orientation is not preserved in IE 6 Windows XP Internet Explorer 0 23rd Apr 2004 09:45 PM
Programming a Page Orientation Change in IE 6.0 Craig Windows XP Internet Explorer 0 10th Dec 2003 05:08 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 AM.