ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Take Focus Off of CommandButton When Exiting UserForm (https://www.excelbanter.com/excel-programming/377643-take-focus-off-commandbutton-when-exiting-userform.html)

Minitman[_5_]

Take Focus Off of CommandButton When Exiting UserForm
 
Greetings,

I have a Toolbar CommandButton on my worksheet that is used to call up
a UserForm. When I exit the UserForm, the CommandButton still has the
focus.

Is there anyway to restore the focus to the worksheet as I exit the
UserForm?

Your help is greatly appreciated.

TIA

-Minitman

JLGWhiz

Take Focus Off of CommandButton When Exiting UserForm
 
CommandBars.ReleaseFocus

"Minitman" wrote:

Greetings,

I have a Toolbar CommandButton on my worksheet that is used to call up
a UserForm. When I exit the UserForm, the CommandButton still has the
focus.

Is there anyway to restore the focus to the worksheet as I exit the
UserForm?

Your help is greatly appreciated.

TIA

-Minitman


Minitman[_5_]

Take Focus Off of CommandButton When Exiting UserForm
 
Thanks

-Minitman


On Fri, 17 Nov 2006 11:45:02 -0800, JLGWhiz
wrote:

CommandBars.ReleaseFocus




All times are GMT +1. The time now is 11:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com