Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
After checking control checkbox returning focus to the sheet
|
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
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. |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
After checking control checkbox returning focus to the sheet
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
font size changes w/ control focus | Excel Worksheet Functions | |||
Focus on Control before UserForm(s) pop up | Excel Programming | |||
test if a control has or doesnt have focus? | Excel Programming | |||
Taking focus off a Control Checkbox | Excel Programming | |||
Returning Key Focus | Excel Programming |