• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Adjust to Screen Resolution

Portucale

Member
Hi,

I am looking for a method that adjust (zoom) the workbook on opening to fit within the screen resolution of the user.

I have been using
Code:
 activewindow.Zoom = true
but is not quite right as in higher resolutions only zooms up to 78%.

Any idea/help is very much appreciated,
Thanks in advance,
 
I think you simply need to select a Range first

Code:
  Range("B3:J19").Select 'Adjust to suit
  ActiveWindow.Zoom = True
 
Thanks guys for the help, in fact just needed the range to be added, Thanks Hui.

Deepak, sorry but for some reason when I perform your solution the zoom stays the same hence no change on different screen resolution... but thanks for the help.
 
Back
Top