PC Review


Reply
Thread Tools Rate Thread

Auto-adjust According to Resolution

 
 
Risky Dave
Guest
Posts: n/a
 
      15th Dec 2008
Hi,

I have an application that forces my users to navigate about it using a set
of buttons. When this is run on different users machines (with different
screen resolution settings) the formatting of the page gets knocked off.

Is it possible to have XL recognise the resolution that a given instance is
set to and auto adjust the % slider (this is in Office '07 under Vista) to
ensure that a specific area of the sheet is displayed?

TIA

Dave
 
Reply With Quote
 
 
 
 
Trevor Williams
Guest
Posts: n/a
 
      16th Dec 2008
Hi Dave - this is a 'quick and dirty' method, and sombody may give a cleaner
answer:

You can use the 'zoom to selection' option e.g. if your sheets used columns
A-S you can select the columns and 'zoom to selection' - maybe trigger it
using the Workbook_open event

Sub ResizeSheets()
Dim sh as worksheet
For each sh in activeworkbook.worksheets
sh.select
Range("A1:S1").Select
ActiveWindow.Zoom = True


"Risky Dave" wrote:

> Hi,
>
> I have an application that forces my users to navigate about it using a set
> of buttons. When this is run on different users machines (with different
> screen resolution settings) the formatting of the page gets knocked off.
>
> Is it possible to have XL recognise the resolution that a given instance is
> set to and auto adjust the % slider (this is in Office '07 under Vista) to
> ensure that a specific area of the sheet is displayed?
>
> TIA
>
> Dave

 
Reply With Quote
 
Trevor Williams
Guest
Posts: n/a
 
      16th Dec 2008
Sorry Dave - a bit premature there!
Here's the code...

Sub ResizeSheets()
Dim sh as worksheet
Application.Screenupdating = False
For each sh in activeworkbook.worksheets
sh.select
Range("A1:S1").Select
ActiveWindow.Zoom = True
Next sh
Application.Screenupdating = True
End sub

As far as I'm aware you have to use the 'select' option on the sheets and
the range.

HTH - Trevor Williams

"Trevor Williams" wrote:

> Hi Dave - this is a 'quick and dirty' method, and sombody may give a cleaner
> answer:
>
> You can use the 'zoom to selection' option e.g. if your sheets used columns
> A-S you can select the columns and 'zoom to selection' - maybe trigger it
> using the Workbook_open event
>
> Sub ResizeSheets()
> Dim sh as worksheet
> For each sh in activeworkbook.worksheets
> sh.select
> Range("A1:S1").Select
> ActiveWindow.Zoom = True
>
>
> "Risky Dave" wrote:
>
> > Hi,
> >
> > I have an application that forces my users to navigate about it using a set
> > of buttons. When this is run on different users machines (with different
> > screen resolution settings) the formatting of the page gets knocked off.
> >
> > Is it possible to have XL recognise the resolution that a given instance is
> > set to and auto adjust the % slider (this is in Office '07 under Vista) to
> > ensure that a specific area of the sheet is displayed?
> >
> > TIA
> >
> > Dave

 
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
adjust resolution benothappy Microsoft Powerpoint 2 26th Jun 2008 11:09 AM
Adjust my resolution... =?Utf-8?B?V2lkZSBFeWVkIE5lcmQ=?= Windows Vista Hardware 8 23rd Dec 2006 07:20 AM
Adjust Resolution =?Utf-8?B?QWNjZXNzSGVscA==?= Microsoft Access Forms 1 14th Oct 2005 08:39 PM
Auto-adjust resolution = off =?Utf-8?B?TWlndWVs?= Windows XP Help 0 29th Mar 2004 02:41 PM
can't adjust color resolution Ruth Windows XP Setup 0 21st Oct 2003 06:37 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:51 PM.