I have a mailmerge set up in MSAccess which opens an instance of word.
Sometimes, Word opens and is only visible as a tiny triangle in the top left
corner of the screen. It is then difficult to open it up.
1. What causes this?
2. How can I prevent it.
The two relevant lines of my code that open the instance of word are:
objword.Application.Visible = True
objword.Mailmerge.Execute
How can I ensure that the window with Word in it opens maximised?
dixie
Hi Dixie,
You might try sticking
objword.Application.Activate in after the .Visible line
You can also set objWord.ActiveWindow.WindowState to an explicit window size.
> I have a mailmerge set up in MSAccess which opens an instance of word.
> Sometimes, Word opens and is only visible as a tiny triangle in the top left
[quoted text clipped - 9 lines]
>
> How can I ensure that the window with Word in it opens maximised?
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.mvps.org/word
This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)