Shift focus from a userform to excel
Shift focus from a userform to excel
(OP)
Hello
How can I shift focus from a visible userform to the excel sheet?
Currently, the last statement in my procedure is...
Sheets("MySheet").Range("B93").Activate
The cell selector is put in the correct place, however the userform still has focus... therefore you must actually click the excel sheet before you can type in the selected cell.
Any ideas on how to programatically shift focus to the excel sheet?
Thanks for the help!
How can I shift focus from a visible userform to the excel sheet?
Currently, the last statement in my procedure is...
Sheets("MySheet").Range("B93").Activate
The cell selector is put in the correct place, however the userform still has focus... therefore you must actually click the excel sheet before you can type in the selected cell.
Any ideas on how to programatically shift focus to the excel sheet?
Thanks for the help!
Have a great day!
Scott





RE: Shift focus from a userform to excel
Cheers,
Joerd
Please see FAQ731-376 for tips on how to make the best use of Eng-Tips.
RE: Shift focus from a userform to excel
On another board I also found... AppActivate ("Microsoft Excel")
This keeps the userform visible and sets focus to the named app
Thanks for the input.
Have a great day!
Scott