S
Slow Flyer
I am writing in VBA using Word.
If I run UserForm1 with no code, UserForm1 becomes the
active window (as expected).
But if UserForm1 includes the suggested code for the use
of msoFileDialogOpen, UserForm1 is no longer the active
window once it is run and the open file selection made.
Instead Word becomes the active window. UserForm1 has to
be clicked to make it the active window again.
How can I make UserForm1 automatically the active window
again (instead of word) following use of
msoFileDialogOpen?
I am greatful for the response by Cindy Meister, to which
I provide give the following information:
Have you set the UserForm to "Modal"?
The behaviour is the same whether UserForm1 ShowModal is
set true or false.
How about having your code select (set the focus in) a
control on the UserForm?
The behaviour is the same when my code selects (sets the
focus in) a control on UserForm1
Which version of Word is this?
It is Word 2002 10.4030.2625
Any other ideas/solutions?
If I run UserForm1 with no code, UserForm1 becomes the
active window (as expected).
But if UserForm1 includes the suggested code for the use
of msoFileDialogOpen, UserForm1 is no longer the active
window once it is run and the open file selection made.
Instead Word becomes the active window. UserForm1 has to
be clicked to make it the active window again.
How can I make UserForm1 automatically the active window
again (instead of word) following use of
msoFileDialogOpen?
I am greatful for the response by Cindy Meister, to which
I provide give the following information:
Have you set the UserForm to "Modal"?
The behaviour is the same whether UserForm1 ShowModal is
set true or false.
How about having your code select (set the focus in) a
control on the UserForm?
The behaviour is the same when my code selects (sets the
focus in) a control on UserForm1
Which version of Word is this?
It is Word 2002 10.4030.2625
Any other ideas/solutions?