ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is there an AfterUpdate event for excel combobox? (https://www.excelbanter.com/excel-programming/375257-there-afterupdate-event-excel-combobox.html)

T.G.

Is there an AfterUpdate event for excel combobox?
 
I have an excel 2003 combobox. I need an "after update" event likeI know
from Access. Is it available in excel?

When I look into events in the vba code I have "click" event and "change"
event available. The change event fires when I move from one item to the
next in the drop-down list. The click event fires when there is a match in
the drop-down list, for instance when I type the letter D to scroll down
dropdown list to list items starting with letter D.

None of the events seem to do the job for me. What I need is to detect the
contents of the combobox after the selection is done by the operator and the
dropdown list is collapsed. How can I fix this?

Regards

Tore



Tom Ogilvy

Is there an AfterUpdate event for excel combobox?
 
Yes, if the combobox is in a userform. The event is provided by the control
object which is the container on a userform. On a worksheet the container
is the oleObject which provides gotfocus and lostfocus, but not afterupdate.

--
Regards,
Tom Ogilvy

"T.G." wrote in message
...
I have an excel 2003 combobox. I need an "after update" event likeI know
from Access. Is it available in excel?

When I look into events in the vba code I have "click" event and "change"
event available. The change event fires when I move from one item to the
next in the drop-down list. The click event fires when there is a match in
the drop-down list, for instance when I type the letter D to scroll down
dropdown list to list items starting with letter D.

None of the events seem to do the job for me. What I need is to detect the
contents of the combobox after the selection is done by the operator and
the dropdown list is collapsed. How can I fix this?

Regards

Tore





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

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