S
Southern at Heart
I want my 2 windows to be tiled vertically.
Window1 is on the left and needs 25% of the screen
Window2 is on the right and needs 75% of the screen
I've done this with something like the code below, but this doesn't take
into account if the user has the start bar on the side. Is there a way to
tell if it is, and how many pixels it's taking up?
thanks, southernatheart
lngHorizontal = System.HorizontalResolution
lngVertical = System.VerticalResolution
'RESIZE THE EXISTING DOCUMENT
Application.WindowState = wdWindowStateNormal
Application.Move Left:=0.2 * lngHorizontal, Top:=0 'Resize the page
Application.Resize Width:=(lngHorizontal * 0.55), Height:=lngVertical * 0.72
ActiveDocument.Save
Window1 is on the left and needs 25% of the screen
Window2 is on the right and needs 75% of the screen
I've done this with something like the code below, but this doesn't take
into account if the user has the start bar on the side. Is there a way to
tell if it is, and how many pixels it's taking up?
thanks, southernatheart
lngHorizontal = System.HorizontalResolution
lngVertical = System.VerticalResolution
'RESIZE THE EXISTING DOCUMENT
Application.WindowState = wdWindowStateNormal
Application.Move Left:=0.2 * lngHorizontal, Top:=0 'Resize the page
Application.Resize Width:=(lngHorizontal * 0.55), Height:=lngVertical * 0.72
ActiveDocument.Save