A
Anthony
Hi,
I am using a userform to load document into Word, but when the
document is opened, the userform window will be covered by the opened
file. This happens whether the ShowModal property is set to True or
False.
I checked online and found this posted by Doug:
Making a UserForm show above a newly created Word 2000+
http://www.word.mvps.org/FAQs/Userforms/KeepUserFmAboveDoc.htm
but the link is removed.
I also tried to minimize the newly opened file with the following
code:
wrdDoc.Windows(1).WindowState = wdWindowStateMinimize
(The wrdDoc is the file object and I verified the wrdDoc.Name as the
file name.)
but it does not get minimized. However, when I use
activedocument.Windows(1).WindowState = wdWindowStateMinimize, it
works on the document which is running the code.
Could any one help? (I need to know how to make the userform appear
at front and how to minimize a opened doc with VBA.)
Anthony
I am using a userform to load document into Word, but when the
document is opened, the userform window will be covered by the opened
file. This happens whether the ShowModal property is set to True or
False.
I checked online and found this posted by Doug:
Making a UserForm show above a newly created Word 2000+
http://www.word.mvps.org/FAQs/Userforms/KeepUserFmAboveDoc.htm
but the link is removed.
I also tried to minimize the newly opened file with the following
code:
wrdDoc.Windows(1).WindowState = wdWindowStateMinimize
(The wrdDoc is the file object and I verified the wrdDoc.Name as the
file name.)
but it does not get minimized. However, when I use
activedocument.Windows(1).WindowState = wdWindowStateMinimize, it
works on the document which is running the code.
Could any one help? (I need to know how to make the userform appear
at front and how to minimize a opened doc with VBA.)
Anthony