View Single Post
 
Old 07-08-2015, 03:37 PM
mrlemmer11 mrlemmer11 is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Jun 2015
Posts: 13
mrlemmer11 is on a distinguished road
Default vba code to change word zoom level based on Display monitor being Portrait or Landscape mode?

Hi there all of us at work have dual 21 inch widescreen monitors. Some of us prefer to have our second monitor actually be in landscape mode, but some of us physically turn our 2nd monitor so that it is taller rather than wide. we then hit control alt left so that what shows on our screen is also adjusted.


Those of use who keep our second monitor wider rather than taller prefer this:
Code:
With ActiveDocument.ActiveWindow.View
    .Type = wdPrintView
    .Zoom.Percentage = 120
    .FullScreen = True
End With
while those of us who prefer it to be taller rather than wider prefer this:
Code:
With ActiveDocument.ActiveWindow.View
    .Type = wdPrintView
    .Zoom.Percentage = 104
    .FullScreen = True
End With
So i can def do an if statement... but I don't know the code to determine what orientation the display with my word application is currently at.. any thoughts?
Reply With Quote