By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
426,139 Members | 1,228 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 426,139 IT Pros & Developers. It's quick & easy.

Word not opening properly during a mailmerge

P: n/a
When I do a mailmerge from Access to Word by automation, sometimes, the Word
window does not fully open and can be found up in the very top left hand
corner of the screen. Is there a command I can send with the automation
code to ensure that Word opens into a maximised window?

dixie
Nov 12 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"dixie" <di****@dogmail.com> wrote in message news:<YR****************@nnrp1.ozemail.com.au>...
When I do a mailmerge from Access to Word by automation, sometimes, the Word
window does not fully open and can be found up in the very top left hand
corner of the screen. Is there a command I can send with the automation
code to ensure that Word opens into a maximised window?

dixie


something like... (UNTESTED snippet)

Public Sub MuckWithWord()
Dim appWord As Word.Application
Set appWord = New Word.Application

appWord.Activate
appWord.ActiveWindow.WindowState = wdWindowStateMaximize
End Sub
Nov 12 '05 #2

P: n/a
Now tested and functional. Thanks Pieter.

dixie

"Pieter Linden" <pi********@hotmail.com> wrote in message
news:bf************************@posting.google.com ...
"dixie" <di****@dogmail.com> wrote in message

news:<YR****************@nnrp1.ozemail.com.au>...
When I do a mailmerge from Access to Word by automation, sometimes, the Word window does not fully open and can be found up in the very top left hand
corner of the screen. Is there a command I can send with the automation
code to ensure that Word opens into a maximised window?

dixie


something like... (UNTESTED snippet)

Public Sub MuckWithWord()
Dim appWord As Word.Application
Set appWord = New Word.Application

appWord.Activate
appWord.ActiveWindow.WindowState = wdWindowStateMaximize
End Sub

Nov 12 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.