ExcelBanter

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

avi

Refedit retains focus (Repost)
 
Hello,

I'm using a refedit whose value (a range address) serves to populate a
listview box.

Is there a way to cause the refedit to loose automatically focus after
it is completely updated, whithout using the change event which seems
to be fired several time as the refedit value is filled, and thus
causing indesirable results

Sorry for reposting but I really need some help

Thanks
Avi


Jon Peltier

Refedit retains focus (Repost)
 
I've found the RefEdit events unreliable. Why not use ListBox1.SetFocus to
take away focus from the RefEdit?

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"avi" wrote in message
ups.com...
Hello,

I'm using a refedit whose value (a range address) serves to populate a
listview box.

Is there a way to cause the refedit to loose automatically focus after
it is completely updated, whithout using the change event which seems
to be fired several time as the refedit value is filled, and thus
causing indesirable results

Sorry for reposting but I really need some help

Thanks
Avi




John Bundy

Refedit retains focus (Repost)
 
Refedit will let you select multiple ranges and change selections, there is
no way for the system to know when you are done, you have to tell it you are
done with a tab or something to move to the next. Its best try at knowing
when your done is well represented in what you saw with the change event.
--
-John
Please rate when your question is answered to help us and others know what
is helpful.


"avi" wrote:

Hello,

I'm using a refedit whose value (a range address) serves to populate a
listview box.

Is there a way to cause the refedit to loose automatically focus after
it is completely updated, whithout using the change event which seems
to be fired several time as the refedit value is filled, and thus
causing indesirable results

Sorry for reposting but I really need some help

Thanks
Avi



avi

Refedit retains focus (Repost)
 
Thanks a lot

As usual, I end up with using input box

Avi



All times are GMT +1. The time now is 08:43 AM.

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