#1
|
|||
|
|||
Combobox to trigger sub only when item selected by click
I want my Combobox (userform) to trigger sub ONLY when the item selected by click, not when I type some text and this text corresponds to a value in the list.
Using click event: the problem is that when I type a text that corresponds to a item in the list and try to click in this item, this does not triggers any click event (click, mouseup, mousedown). Using change event: when I type some text and this text corresponds to a item in the list it triggers the event, even when I was typing only to search items in the list. Is there any solution for this? Thank you
__________________
Backup your original file before doing any modification. |
#2
|
|||
|
|||
Apparently there is no solution to this.
I've found a workaround by my self, I add a double " " blank space in each list item so that the value typed in the combo box never matches a value in the drop down list that will ensure that the click event will always work. In the Change event I alway remove the extra blank spaces to return the combobox value to the actual value. Thanks! For collaboration purposes only, here's some parts of my code: Quote:
__________________
Backup your original file before doing any modification. |
Thread Tools | |
Display Modes | |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
VBA Powerpoint slide table data to combobox item | janism22 | PowerPoint | 0 | 03-25-2015 05:05 AM |
Need macro to fill data from different sheets based on selected item from drop down | skorasika | Excel Programming | 1 | 03-13-2015 11:25 AM |
Start Animation with click on multiple trigger (after one another) | KaySunset | PowerPoint | 5 | 02-26-2015 01:23 AM |
Selected items in Combobox remain the same when closing and reopen document | Attila | Word VBA | 3 | 01-29-2015 04:08 AM |
Returning a specific value when item is selected from a drop-down list | J Press | Excel | 4 | 09-10-2012 06:12 AM |