Maximize Word in two directions

A

acores

Hello.
I am designing an Access database which exports some information to MS Word.
I entered this vba lines in the export procedure:

Set objDoc = objWord.Documents.Add(strTemplate)
objWord.WindowState = wdWindowStateMaximize

However, when MS Word opens, the window only maximize horizontally, and not
vertically... Is it possible to force Word window to maximize in both
directions in order to fullfill all the display?

Thanks in advance.
 
D

Doug Robbins - Word MVP

This is sometimes more a Windows issue than one connected with your code.
It can usually be overcome by manually (click and drag) maximizing the
Window, then clicking on the Maximize button. There after, the Maximize
button (and probably your code) seems to do what it is designed for.

--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP
 

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