S
Steven G
I have set up a template with a VBA coded user form for data entry. I have
noticed that if the Word setting "Windows in Taskbar" is selected, the user
form when started will "Grab" the open instance of word. If the settings is
unselected the user form will allow two instances of Word to run, the problem
I am having is telling the "UserForm" instance to maintain it's focus when
the "Save" button in the form is activated. The code will run partially up
to the point where I need to format the NEW document based on the template.
Questions
1. Is there a way to let the NEW document based on the"UserForm" template
to maintain it's focus so the code will run on the correct document?
2. If not is there a way to prevent a multiple instance of Word while the
"UserForm" template is running?
Please help, the code in the template runs correctly unless there is another
open instance of word. I have tested the code considerably but have run into
this snag and need to see if it can be corrected.
Thanks
noticed that if the Word setting "Windows in Taskbar" is selected, the user
form when started will "Grab" the open instance of word. If the settings is
unselected the user form will allow two instances of Word to run, the problem
I am having is telling the "UserForm" instance to maintain it's focus when
the "Save" button in the form is activated. The code will run partially up
to the point where I need to format the NEW document based on the template.
Questions
1. Is there a way to let the NEW document based on the"UserForm" template
to maintain it's focus so the code will run on the correct document?
2. If not is there a way to prevent a multiple instance of Word while the
"UserForm" template is running?
Please help, the code in the template runs correctly unless there is another
open instance of word. I have tested the code considerably but have run into
this snag and need to see if it can be corrected.
Thanks