![]() |
After checking control checkbox returning focus to the sheet
After a user has checked a control checkbox, the focus normally remains on
the control. I don't like this. Now to return the focus to the sheet I'm using: ActiveWindow.RangeSelection.Select But this is less than perfect. If the active cell is not in view, the spreadsheet will jump to put it in view. Is there some other way I can return the focus to the sheet without this quirk? Thanks, Don <donwiss at panix.com. |
After checking control checkbox returning focus to the sheet
|
After checking control checkbox returning focus to the sheet
Sorry, this is what you really want :-
ActiveWindow.VisibleRange.Cells(1, 1).Selec -- Message posted from http://www.ExcelForum.com |
After checking control checkbox returning focus to the sheet
The checkboxes from the Forms toolbar don't take focus when clicked.
But if you must use the ActiveX checkbox, try the following. Private Sub CheckBox1_Click() SendKeys "{ESC}" End Sub Regards, Vic Eldridge Don Wiss wrote in message . .. After a user has checked a control checkbox, the focus normally remains on the control. I don't like this. Now to return the focus to the sheet I'm using: ActiveWindow.RangeSelection.Select But this is less than perfect. If the active cell is not in view, the spreadsheet will jump to put it in view. Is there some other way I can return the focus to the sheet without this quirk? Thanks, Don <donwiss at panix.com. |
After checking control checkbox returning focus to the sheet
|
All times are GMT +1. The time now is 08:36 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com