ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Refedit retains focus (https://www.excelbanter.com/excel-programming/399503-refedit-retains-focus.html)

avi

Refedit retains focus
 
Hello,

My refedit control should release focus (by a refedit_exit event) in
order to enable populating a listbox after the range on the refedit
has been updated

The problem is that after updating the refedit range, the refedit
retains focus. I tried change_event, but it prevents the updating the
refedit .

Any idea?

Thanks a lot
Avi


Cringing Dragon

Refedit retains focus
 
It would help to answer this if you could give us some context by including
the code snippet that makes use of the refedit.
Have you tried including a line in your refedit_exit event code to either
pass the focus to another control or to select a cell reference? Eg:
UserForm1.ListBox1.SetFocus

"avi" wrote:

Hello,

My refedit control should release focus (by a refedit_exit event) in
order to enable populating a listbox after the range on the refedit
has been updated

The problem is that after updating the refedit range, the refedit
retains focus. I tried change_event, but it prevents the updating the
refedit .

Any idea?

Thanks a lot
Avi




All times are GMT +1. The time now is 07:48 PM.

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