making adjustment for the start bar on the side of the screen

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
 
D

Dirk Goldgar

Southern at Heart said:
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


I think maybe this question is not about programming Microsoft Access, which
is the focus of this newsgroup. Is it Word, perhaps? If so, you would do
better to post in <microsoft.public.word.programming>.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top