H
Hendy88
Hello again,
I was wondering if anyone knows how to pass control back to Excel after
the macro opens another application. What I have is a macro that opens
an Emulator window, then I have a UserForm that prompts the user to
enter their UserName. The problem is that the Emulator window is in
front of Excel at that point and you cannot see the UserForm behind it.
All it does it "flashes" the Excel window control in the TaskBar. Of
course, once you click on it, it then brings Excel up to the top of the
Z-Index/Level.
What I'm wondering is if there's a way to program part of the macro to
maybe "focus" back on the Excel application/workbook/worksheet AFTER
the Emulator application is opened. Reason why, is some users (believe
it or not) are just not smart enough to click on something they see
flashing at the bottom of the screen. They'll sit there and wait and
wait, calling me telling me it's not doing anything. When it fact it's
really waiting for them.
I just want to take this step out of the equation, so that I don't have
to worry about someone getting "hung up" at this point. Perhaps maybe
a BringWindowToTop() Function?
Thanks in advance!
Steve
I was wondering if anyone knows how to pass control back to Excel after
the macro opens another application. What I have is a macro that opens
an Emulator window, then I have a UserForm that prompts the user to
enter their UserName. The problem is that the Emulator window is in
front of Excel at that point and you cannot see the UserForm behind it.
All it does it "flashes" the Excel window control in the TaskBar. Of
course, once you click on it, it then brings Excel up to the top of the
Z-Index/Level.
What I'm wondering is if there's a way to program part of the macro to
maybe "focus" back on the Excel application/workbook/worksheet AFTER
the Emulator application is opened. Reason why, is some users (believe
it or not) are just not smart enough to click on something they see
flashing at the bottom of the screen. They'll sit there and wait and
wait, calling me telling me it's not doing anything. When it fact it's
really waiting for them.
I just want to take this step out of the equation, so that I don't have
to worry about someone getting "hung up" at this point. Perhaps maybe
a BringWindowToTop() Function?
Thanks in advance!
Steve